using third party TCL library

From: Avik Ghose (avikghose_at_yahoo.co.in)
Date: 03/30/04


Date: Tue, 30 Mar 2004 17:44:01 +0100 (BST)
To: python-list@python.org

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



Relevant Pages

  • Re: Tcl faster than Perl/Python...but only with tricks...
    ... I have tried some small variations by mimicking your first python code. ... the tcl code that does similar to the python code is: ... python python.py: 582543 microseconds per iteration ...
    (comp.lang.tcl)
  • Re: Choosing Perl/Python for my particular niche
    ... >I was under the impression that Tcl ... >it's good to know that Tcl is an option to Perl and Python, ... >algorithms for programming coarse grain reconfigurable ...
    (comp.lang.perl.misc)
  • Re: Choosing Perl/Python for my particular niche
    ... >I was under the impression that Tcl ... >it's good to know that Tcl is an option to Perl and Python, ... >algorithms for programming coarse grain reconfigurable ...
    (comp.lang.python)
  • Re: Python for TCLer
    ... >I am almost brainwashed to forsake TCL for Python. ... >to ask a few preliminary questions before I jump in. ... One of my vendors supplies TCL package only. ... We have one control structure in our API that has done ...
    (comp.lang.python)
  • Tangent on embeddability (was: Choosing Perl/Python for my particular niche)
    ... Roy Smith wrote: ... It's equally trivial to extend Tcl by ... I reach for Python first. ... in embedding; Python still has blemishes in ease-of-use ...
    (comp.lang.perl.misc)