sh: line 1: /Users/kristine/Desktop/GaussSum-1.0.5/gnuplot400/bin/wgnuplot.exe: No such file or directory
in my terminal. At the moment, I have gnuplot in the path /usr/local/bin instead. So I need to know how to change the settings directory to enable GaussSum to call gnuplot. Can anyone advise me on what or where to edit in the script please? I've pasted a section of the GaussSum.py where I'm guessing should be editted.
Thanks in advance!
Expand|Select|Wrap|Line Numbers
- def preferences(self):
- # The Preferences Dialog Box
- oldsettings=copy.deepcopy(self.settings) # Remember the old settings
- d=PreferencesPopupBox(root,self.settings,title="Settings")
- if self.settings!=oldsettings: # if there are any changes
- self.saveprefs()
- def saveprefs(self):
- # Save the settings
- appdata=os.getenv("HOME")
- settingsfile=os.path.join(appdata,".GaussSum1.0","GaussSum.ini")
- writeoutconfigfile(self.settings,settingsfile)
- def readprefs(self):
- # Check for GaussSum.ini in $HOME/GaussSum1.0 (XP)
- # or $HOME/.gausssum1.0 (Linux)
- appdata=os.getenv("HOME")
- self.settings={}
- if appdata==None: # Must not be a Windows machine!!
- self.screen.write("Environmental variable HOME is not defined!\n\
- I cannot continue, as I need HOME to know\
- where to store GaussSum settings.\n")
- else: # If everything is normal so far
- settingsdir=os.path.join(appdata,".GaussSum1.0")
- settingsfile=os.path.join(settingsdir,"GaussSum.ini")
- if os.path.isfile(settingsfile): # Check for settings file
- # Found it! - so read it in.
- self.settings=readinconfigfile(settingsfile)
- else: # Initialise the settings file (and directory)
- if not os.path.isdir(settingsdir):
- os.mkdir(settingsdir)
- self.settings={'global settings.filetype':'Gaussian',
- 'global settings.gnuplot':os.path.join(sys.path[0],"gnuplot400","bin","wgnuplot.exe"),
- 'find.text1':'SCF Done',
- 'find.text2':'k 501%k502',
- 'find.text3':'imaginary',
- 'find.text4':'Framework',
- 'ir_raman.start':'0',
- 'ir_raman.end':'4000',
- 'ir_raman.numpoints':'500',
- 'ir_raman.fwhm':'3',
- 'mo.start':'-20',
- 'mo.end':'0',
- 'mo.fwhm':'0.3',
- 'uvvis.start':'300',
- 'uvvis.end':'800',
- 'uvvis.numpoints':'500',
- 'uvvis.fwhm':'3000',
- 'uvvis.sigma':'0.2',
- 'eddm.cubman':'C:\\Gaussian\\cubman.exe',
- 'eddm.formchk':'C:\\Gaussian\\formchk.exe',
- 'eddm.cubegen':'C:\\Gaussian\\cubegen.exe',
- 'nmr.data':os.path.join(settingsdir,"nmrdata.txt")
- }
- self.saveprefs() # Save the inital settings file