From: Maurice L. <mj...@ga...> - 2002-10-04 09:50:16
|
Alan W. Irwin writes: > Here are some current limitations of the tcl/tk PLplot install I would like > to see removed in the long term. > > (1) Must have /usr/local/plplot/bin in PATH in order for -dev tk to work. tk > is the only device with this requirement. As I understand it, this > requirement is needed because the tk device starts its own instance of > plserver, and it needs to be able to find it. Doesn't the PLplot library > already know where everything is (for both the plplot/tmp location and > installed location) so it could find plserver without having to rely on the > PATH? Obviously you need the PATH set if you are doing lots of plrendering > or plserving. But there are many cases of using PLplot where you just > simply want to use -dev tk with, e.g, the python examples or C examples so > it would be nice to remove this limitation of requiring the PATH to be set > for -dev tk. I got time to look into this, and I positively do not see the problem. In the tk driver, the plserver is exec'ed as follows: plserver_exec = plFindCommand(pls->plserver); while plFindCommand() (in plctrl.c) searches for plserver under many different locations. Including the install dir (BIN_DIR) and ".". I put in some printf's to see which version it was getting, and then commented out various parts, and it always got the right one. So I'm stumped.. AFAICT it's working fine. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |