resolving module name conflicts.

Gelonida N gelonida at gmail.com
Fri Nov 11 15:27:49 EST 2011



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.












More information about the Python-list mailing list