You can acces environment variables from Tcl with the env() Tcl array
cxh@maury 136% setenv FOO this_is_foo
cxh@maury 137% tclsh
% puts env(FOO)
env(FOO)
% proc printfoo {} {global env; puts env(FOO)}
% printfoo
env(FOO)
%
-Christopher
--------
I want to permlink some object code into Ptolemy, which I have been doing b
y
adding a line to the .ptkrc file. But I have to explicitly declare the
path. I keep getting an error saying the variable doesn't exist if I try
different variations using an environment variable like
permlink $MYPATH/file.o
or
permlink expandPathName($MYPATH/file.o)
...
How can I make this work? Any suggestions?
Thanks
Beth Savoy
Corning, Inc
(607) 974-8813
---------------------------------------------------------------------------
-
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]
--------
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]