Re: Find directory name of file?

2006-01-30 Thread ngw
)? Try os.path.dirname (__file__) HTH, ngw -- http://mail.python.org/mailman/listinfo/python-list

Re: 'could not open display' error when import gtk - how fix?

2006-02-15 Thread ngw
-packages/gtk-2.0/gtk/__init__.py", line > 37, in ?from _gtk import * > RuntimeError: could not open display You have to run the pyshell under the right permissions. Are you trying to import pygtk from the root/toor account ? ngw -- http://mail.python.org/mailman/listinfo/python-list