Launch file in Notepad
George
gtog at _no___spam_myrealbox.com
Thu May 12 09:41:14 EDT 2005
Newbie question:
I'm trying to lauch Notepad from Python to open a textfile:
import os
b1="c:\test.txt"
os.system('notepad.exe ' + b1)
However, the t of test is escaped by the \, resulting in Notepad trying
to open "c: est.txt".
How do I solve this?
(By the way, b1 comes from a command line parameter, so the user enters
c:\test.txt as command line parameter.)
George
More information about the Python-list
mailing list