On May 28, 2005, at 4:13 AM, Christian Meesters wrote: > Hi > > Currently I'm writing a bunch of scripts for batch processing and a > few > for graphical display of my data. During the process of writing I > simply put links in /usr/local/bin to my scripting directory. Invoking > the 'non-graphical' scripts this way in any directory is no problem. > Calling the 'graphical' scripts via one of the links results in the > following error messages: > import: unable to open X server `'. > import: unable to open X server `'. > /usr/local/bin/SPlot: line 14: syntax error near unexpected token > `'WXAgg'' > /usr/local/bin/SPlot: line 14: `matplotlib.use('WXAgg')
Use #!/usr/bin/env /usr/bin/pythonw pythonw is a script and can't be invoked directly from an #! -bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig