title: Pycharm Run External Tool Macro
body: <p>I am trying to run mypy as a "Before Launch" tool in the Run Configuration as a Template. </p>
  
  <p>I have the following settings (Program: is the path to the mypy executible).</p>
  
  <p>When I run my script I expect the macro to insert the filename of the script as so: </p>
  
  <pre><code>mypy.exe myScript.py
  </code></pre>
  
  <p>however it is only running the mypy.exe part (in the console I get an error telling me to supply the target script to the function). I have also tried deleting the working directory field as well, to no avail:</p>
  
  <p>(Win10 / Python3.6 / Miniconda)</p>
  
  <p><a href="https://i.stack.imgur.com/uByyH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uByyH.png" alt=""></a></p>