importing module from two packages with the same name
David Garamond
davegaramond at icqmail.com
Sun Oct 6 05:01:01 EDT 2002
More information about the Python-list mailing list
Sun Oct 6 05:01:01 EDT 2002
- Previous message (by thread): turtle.write dies on MacPython2.2.1
- Next message (by thread): importing module from two packages with the same name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
i have two modules in different location, but they belong to the same package name: /home/david/usr/lib/python/Package1/Libra.pm (1) /home/david/proj/Proj1/lib/python/Package1/Scorpio.pm (2) i have added both paths to sys.path: import sys sys.path.insert(0, '/home/david/usr/lib/python') sys.path.insert(0, '/home/david/proj/Proj1/lib/python') once python found Package1 in (1): import Package1.Libra it won't search in (2), so i can't import Package1.Scorpio. any hint/trick to work around this? is this the intended python module search behaviour? -- dave
- Previous message (by thread): turtle.write dies on MacPython2.2.1
- Next message (by thread): importing module from two packages with the same name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list