[TxMt] Re: Passing arguments to a Python script when you run inside TextMate

Allan Odgaard mailinglist at textmate.org
Thu Jul 9 18:31:22 UTC 2009


On 8 Jul 2009, at 17:13, David Guerin wrote:

> I just started using Textmate recently and at the moment I am trying  
> to get
> some Python scripts working with it. Everything works great but I was
> wondering how to you pass command line arguments to a python script  
> when you
> run it?

There is no support for this, it’s not that we don’t want to provide  
it, just that it’s not really feasible to do without bringing up a  
dialog and that would be a pain for the 99% where you don’t want to  
provide arguments.

What you can do is simply read from stdin then TextMate will show a  
dialog, this is how I handle it in most of my scripts, i.e. read the  
arguments from stdin instead of command line options (when I know I  
mostly run the script in TM).




More information about the textmate mailing list