On Mar 4, 12:22 pm, "C. Titus Brown" <[email protected]> wrote:

>> mods = os.listdir(os.path.dirname(sys.argv[0]))
> You can also use runtest.__file__, so no need to look at sys.argv[0].
One more thing, turns out Python's dirname is more simple than the
command-line version and returns an empty string if runtest.py is
called without an explicitly specified path, which causes an error.
The final form of this line should look like:

mods = os.listdir(os.path.normpath(os.path.dirname(__file__)))

I'm going to post an issue regarding this, with a patch enclosed.

--
MS

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to