Multiple twitter.py modules: How to import just one?

This is the place for queries that don't fit in any of the other categories.

Multiple twitter.py modules: How to import just one?

Postby HappyHappyJoyJoy » Tue Jul 09, 2013 6:33 pm

I have three different packages that each contain a module called "twitter." How do I import just the twitter module that I want?

The folder names in my site-packages directory are:
twitter-1.10.0-py2.7.egg <---- this contains the twitter module I'm trying to import
python_twitter-1.0-py.27.egg
python_rest_client-0.3-py2.7.egg <---- this contains the twitter module that's actually being loaded

Do I have to change something in the __init__.py files to make the right twitter module load? I'm still not clear on what the format of the __init__.py files should be.

Thanks!
HappyHappyJoyJoy
 
Posts: 2
Joined: Sun Jul 07, 2013 10:07 pm

Return to General Coding Help

Who is online

Users browsing this forum: 7stud, rjnicholson and 4 guests