Telling python where to look for a script

Brian Elmegaard brian at rk-speed-rugby.dk
Thu Jun 14 13:18:38 CEST 2001


Alex Martelli wrote:
> 
> the backslashes:-).  A module is meant to be imported.
> A foo.py file can be both, but adapting the path is
> relevant to module-use only, NOT to script-use.  All
> clear so far...?
> 
No, I'm sorry.

Being in c:\foo I would like to be able to execute bar.py on baz.dat
being in . just by typing:

c:\foo>python bar.py baz.dat

Then I need something path-related with scripts, don't I?


-- 
Brian (remove the sport for mail)
http://www.et.dtu.dk
http://www.rk-speed.dk http://fiduso.dk http://sunsite.auc.dk/dk-tug
\TeX, tak



More information about the Python-list mailing list