Naylin opened this issue on Feb 01, 2007 · 12 posts
adp001 posted Tue, 06 February 2007 at 7:05 AM
import sys
if sys.platform.startswith("win") :
ex = "notepad.exe"
else:
ex = "open"
os.popen("%s text.txt" % ex)
But, sorry, why would you do that? Any user should be able to start his prefered texteditor without any help.
What about getting the text you need with a dialog and store it where it belongs to?