resolving module name conflicts.

G

Gelonida N

Hi,

I got some code.
- This code contains a package named tests
- there are at least 100 references in different python files
importing from above mentioned tests package.
- the code also imports pytz at one place

I get following warning message:

/usr/lib/python2.6/dist-packages/pytz/__init__.py:32: UserWarning:
Module tests was already imported from
/home/user/myproject/tests/__init__.pyc, but
/usr/lib/python2.6/dist-packages is being added to sys.path
from pkg_resources import resource_stream


Is there any way to tell pytz to import it's own tests package and tell
the rest of the code to import the other?

Python version is 2.6.5


Thanks in advance for any suggestion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top