[Tutor] How to programmatically EDIT a python file using an editorof my choice ?

Sander Sweers sander.sweers at gmail.com
Sun Apr 12 16:20:19 CEST 2009


2009/4/12 Dominique <mydomdom at gmail.com>:
> I tried several other ways without any success:
> subprocess.Popen(args = ["notepad++.exe", filename])
> subprocess.Popen(args = ["C:\Program Files\Notepad++\notepad++.exe", filename])

Try this:

subprocess.Popen(args = [r'C:\Program Files\Notepad++\notepad++.exe', filename])

Greets
Sander


More information about the Tutor mailing list