Here's a very simple script:
running this, I get:
C:\tmp>tmp.py -h
['C:\\tmp\\tmp.p y']
two things are wrong: 1) there are two '\'s and 2) the argument -h is missing.
I'm running Enthought Python Distribution on Windows XP under Parallels on a Mac. I never had this problem before.
Lisa
Code:
#!/usr/bin/env python import sys print sys.argv
C:\tmp>tmp.py -h
['C:\\tmp\\tmp.p y']
two things are wrong: 1) there are two '\'s and 2) the argument -h is missing.
I'm running Enthought Python Distribution on Windows XP under Parallels on a Mac. I never had this problem before.
Lisa
Comment