[Tutor] Adding to python path

Guillermo Fernandez Castellanos guillermo.fernandez at epfl.ch
Tue Feb 24 09:51:42 EST 2004


Hi,

I've a program that it's structured like that:

I've a main file, called bego.py that uses other modules that are all stored 
(for clarity reasons) in a lib/ folder.

Those modules can also be used separatelly to write scripts, and I've already 
made a few. I would like to keep (always for clarity reasons) all the scripts 
in a scripts/ folder.

How could the scripts in the scripts/ folder use the modules of the lib/ folder 
if they must be called as normal programs?

Structure of my program:
bego.py
lib/
     begohandler.py
     mac.py
     ...
     syslogdb.py
scripts/
     matlab.py
     ...
     arrow.py

Any links, or help would be wellcomed.

Thanks!

Guille



More information about the Tutor mailing list