[Tutor] Import from project's lib directory?
leam hall
leamhall at gmail.com
Sat Aug 30 00:12:43 CEST 2014
On Fri, Aug 29, 2014 at 5:16 PM, Peter Otten <__peter__ at web.de> wrote:
> leam hall wrote:
>
>> Am I asking the wrong question? How do older apps with older versions
>> of python (2.4.x) separate code into sub-directories? Do they?
> You have to ensure that the *parent* of alpha is in sys.path. Then you can
> refer from alpha/beta/one.py to alpha/gamma/two.py with the statement
Ah, so I can use sys.path.insert()! That's what I needed, thanks!
Leam
--
Mind on a Mission
More information about the Tutor
mailing list