Hello Neeraj,

On Tue, Apr 7, 2009 at 10:14 AM, neeraj gupta <[email protected]>wrote:

> I saw gtk imported into a lot of files of Umit but could not find the path
> to it. Can anybody help me in finding it.


Modules on Python are generally imported of site-packages dir, something
like this: /usr/lib64/python2.5/site-packages (linux).
But you can put then in other places too.
Modules like Gtk generally are there.
You can see your "paths" of modules, by importing sys.path.
In my case:

>>> import sys
>>> sys.path
['', '/usr/lib/python2.5/site-packages/Paste-1.7.1-py2.5.egg',
'/usr/lib/python2.5/site-packages/ZSI-2.0_rc3-py2.5.egg',
"/usr/lib/python2.5/site-packages/Paste-1.7.1-py2.5.egg'/usr/lib/python2.5/site-packages/ZSI-2.0_rc3-py2.5.egg",
'/usr/lib/python2.5/site-packages/PyXML-0.8.4-py2.5-linux-x86_64.egg',
'/usr/lib/python2.5/site-packages/elementtree-1.2.7_20070827_preview-py2.5.egg',
'/usr/lib/python2.5/site-packages/BeautifulSoup-3.0.7a-py2.5.egg',
'/usr/lib/python2.5/site-packages/web.py-0.31-py2.5.egg',
'/usr/lib/python2.5/site-packages/simplejson-2.0.5-py2.5-linux-x86_64.egg',
'/usr/lib/python2.5/site-packages/s3funnel-0.5.2-py2.5.egg',
'/usr/lib/python2.5/site-packages/workerpool-0.9.2-py2.5.egg',
'/usr/lib/python2.5/site-packages/boto-1.6b-py2.5.egg',
'/usr/lib/python2.5/site-packages/pytz-2009a-py2.5.egg',
'/usr/lib/python25.zip', '/usr/lib64/python2.5',
'/usr/lib64/python2.5/plat-linux2', '/usr/lib64/python2.5/lib-tk',
'/usr/lib64/python2.5/lib-dynload', '/usr/lib64/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/usr/lib64/python2.5/site-packages/Numeric',
'/usr/lib64/python2.5/site-packages/gtk-2.0',
'/usr/lib/python2.5/site-packages/Numeric']
>>>

On Windows:

>>> import sys
>>> sys.path
['C:\\Python25\\Lib\\idlelib', 'C:\\WINDOWS\\system32\\python25.zip',
'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win',
'C:\\Python25\\lib\\lib-tk', 'C:\\Python25',
'C:\\Python25\\lib\\site-packages']
>>>

On Umit's case (and other Python softwares "compiled" to Windows), gtk came
with the installation and must be here:
path-of-your-umit-installation\lib\gtk-x

Is this your doubt?


Cheers,

-- 
Daniel Cassiano
_____________________________

Page: http://danielcassiano.net/
http://www.umitproject.org/
http://www.apontador.com <http://www.apontador.com.br/>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Umit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/umit-devel

Reply via email to