From: Michael H. <mh...@ka...> - 2004-07-03 21:25:32
|
Robert Brown wrote: >[...] >Now when I launch my terminal window without invoking Gnuplot, I get the >following message in my terminal window: > > >>Last login: Fri Jul 2 14:08:28 on ttyp1 >>Welcome to Darwin! >>Robert-Browns-Computer:~ robertbr$ /tmp/501/Cleanup\ At\ >>Startup/1386939.command; exit >>[Process completed]-bash: /tmp/501/Cleanup At Startup/1386939.command: No such >>file or directory >>logout >> >> [...] >Does anyone see this problem as related to my uncommenting line 108 in the >demo.py file? I am using Mac OS 10.3.4 if this helps. > > The "Cleanup At Startup" directory seems to be a Mac place to write files that can be deleted without moving them to the trash first. It appears that somebody is writing a command script in that directory which should be executed when you log in (e.g., it is run from your .profile or .bashrc or whatever Macs use). But the file is missing for some reason. Gnuplot.py is certainly not doing anything so elaborate itself. It creates temporary files using filenames generated by Python's standard tempfile.mktemp() function then deletes them when the _TempFileItem object is destroyed using os.unlink(), and it might be that Python puts those files in the "Cleanup At Startup" directory. But it doesn't write any command scripts, and certainly none that are installed into one of your startup scripts. It's hardly imaginable that the Mac version of Python or gnuplot go to such heroic efforts to try to ensure the deletion of temporary files, and I don't see any such code in the Python source, so I guess that your problem must have arisen from a cause unrelated to Gnuplot.py. You might try using grep to find out which script is trying to execute that missing file. Perhaps that will give you further clues. Michael -- Michael Haggerty mh...@al... |