Using PythonPath under Windows Vista.

Steve Holden steve at holdenweb.com
Sun Jan 4 09:09:57 EST 2009


Francesco Bochicchio wrote:
[...]
> AFAIK, PYTHONPATH only works for the imported modules. For the main
> module, you have to do give the full path.
> OR you could try out the new flag -m, which allows to run directly a
> module from the standard library and - I guess - also user modules if
> PYTHONPATH is set correcltly. So try from a "DOS Box" the command:
> 
>  "c\python26>python -m brian.py"
> 
Note that you need to give the *name* of the module to the -m option, so
that should be brian, not brian.py. E.g.:

$ python -m StringIO
File length = 1001
First line = 'SYSTEM:*:18:544:,S-1-5-18::\n'
Position = 28
Second line = 'LocalService:*:19:544:U-NT
AUTHORITY\\LocalService,S-1-5-19::\n'
Read 8 more lines
File length = 1001
Truncated length = 500

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list