Hi,

I'd like to know how individual python web scripts of a package are
run independently?

For example: 
http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/annotate/head:/Mailman/Bouncers/BouncerAPI.py

The BouncerAPI.py program when its run, in turn calls another module
syslog (Mailman/Logging/Syslog.py). How can I execute the program
BouncerAPI.py independently for a unit test and avoid "ImportError: No
module named Mailman.Logging.Syslog" errors ?

Currently each *.py file links (calls?) other modules in different
directories. i'd like to be able to give the PATH externally, else the
*.py file throws an error when its run. Its possible to internally
modify each file but that is tedious task for more than 2-3 files. So
how do i give the PATH externally which will run a *.py file sans the
module errors?

TIA,
-- 
peace,
vid || http://svaksha.com
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to