Hi Alan,

window paths in Tcl/Tk always start with a period. It looks as if
the device derives a name based on the path of the executable (as
stored in argv[0]). I have not examined that code yet, but a
simple solution would be to add a leading period if one is missing.

Regards,

Arjen

On 2009-12-10 23:13, Alan W. Irwin wrote:
> There is something I don't understand about -dev tk.  If you try executing
> 
> examples/c/x01c -dev tk
> 
> you get an error
> 
> bad window path name "examples/c/x01c"
> 
> However,
> 
> ./examples/c/x01c -dev tk
> 
> and
> 
> cd examples/c
> ./x01c -dev tk
> 
> both work without issues. What is magic about the leading period in
> pathnames for Tcl/Tk?  Can we make -dev tk immune to this issue?
> 
> Alan
> __________________________
> Alan W. Irwin
> 
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
> 
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
> 
> Linux-powered Science
> __________________________
> 
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 
> 

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to