title: How can I supply command line arguments to a script in Enthought Canopy Editor?
body: <p>I am using the new Enthought Canopy code editor on OSX (64-bit). To test a script, I need to provide a command-line argument like:</p>
  
  <pre><code>import sys
  config_file = sys.argv[1]
  </code></pre>
  
  <p>However, I can't seem to find a way to provide a command line argument to the script. I tried using a macro as:</p>
  
  <pre><code>def run():
      code_task = get_active_task()
      code_task.run_current_file('config_filename')
  </code></pre>
  
  <p>...but I get an error that <code>run_current_file</code> only takes one argument (presumably <code>self</code>).</p>