By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

using third party TCL library

P: n/a
Hi All,
I am calling some TCl scripts from python using the
following syntax:

import Tkinter;
Tkinter.Tk().tk.eval(myTcl);

Now I need to use a 3rd party TCL library for my
script. Its like :
package require TclLib

When I run this python file I get an error saying:
Traceback (most recent call last):
File line 301, in RunScript
exec codeObject in __main__.__dict__
File "C:\aghose\Test3.py", line 3, in ?
Tkinter.Tk().tk.eval(myTcl);
TclError: can't find package TclLib

Now that is obvious since the python interpreter is
invocing a TCL shell which does not know where my
package is.
My question is where can I put this file so that the
TCL invoced from the python shell gets it.
Thanks in advance,


=====
Thanks and regards,
Avik Ghose

__________________________________________________ ______________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
Go to: http://in.insurance.yahoo.com/licspecial/index.html

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.