run all scripts in sub-directory as subroutines?
Tobiah
toby at rcsreg.com
Fri Nov 13 15:28:43 EST 2009
> This works fine, but in the sub-modules the sys.path appropriately
> returns the same as from the parent, I want them to know their own file
> names. How?? I can pass it to them, but wondered if there is a more
> self-sufficient way for a module to know from where it was invoked.
I like the idea of passing the information to the module.
Probably by setting a global variable into it.
More information about the Python-list
mailing list