From: Samuele P. <ped...@bl...> - 2002-10-19 12:29:46
|
From: "Robert Wentworth" <rh...@er...> > Thanks. So basically, you can program the behavior to be anything you want, > if you're willing to put relevant code in the __init__.py files... > you can set __path__ programmatically at runtime in your __init__, then __path__ would behave recursively as a sys.path for the scope of the package. This should be done only if necessary. And it is probably a good idea to set __path__ exactly once. regards. |