trace.py cannot find script after reading from it?

sik0fewl xxdigitalhellxx at hotmail.com
Wed Feb 26 10:15:30 EST 2003


Peter Hansen wrote:
> Mathias Koerber wrote:
> 
>>I have a problem with trace.py and would like to find out what could be
>>the reason. Python is 2.1.1
>>
>>In short, trace.py seems to be able to open the script I specify on the
>>commandline but after importing paths it claims that that script file
>>does not exist!
>>
>>I have tried setting PYTHONPATH to ".", the full name of the
>>local directory etc without avail.
>>
>>Any help is appreciated.
>>
>>$ python trace.py --trace ./MK_add-members.py <args>
>>__main__(0): ??
>>__main__(1): ??
>>MK_add-members.py(0): main()
>>MK_add-members.py(87): """
>>MK_add-members.py(89): import sys
>>MK_add-members.py(90): import os
>>MK_add-members.py(91): import string
>>MK_add-members.py(92): import getopt
>>MK_add-members.py(93): import paths
>>./MK_add-members.py: Cannot run file './MK_add-members.py' because: No such
>>file or directory
>>#
> 
> 
> I don't know what's going wrong, but have you tried it without the
> leading "./" ?  Maybe it gets confused by that...
> 
> -Peter

You could also try giving it an absolute path: /path/to/MK_add-members.py

--
Ryan





More information about the Python-list mailing list