From: Kevin A. <ka...@us...> - 2004-08-03 15:57:41
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14376 Modified Files: flatfileDatabase.py Log Message: fixed path issue with config loading Index: flatfileDatabase.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/flatfileDatabase.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** flatfileDatabase.py 30 Apr 2004 23:51:03 -0000 1.22 --- flatfileDatabase.py 3 Aug 2004 15:57:32 -0000 1.23 *************** *** 770,775 **** def getDataFile(self, filename): # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(sys.argv[0]), filename) parser = ConfigParser.ConfigParser() parser.read(path) --- 770,778 ---- def getDataFile(self, filename): + # KEA 2004-08-03 + # this should probably be made more flexible by passing in a full path + # so that we can switch to using the config directory... # assume the ini file is in the same directory as the script ! path = os.path.join(self.application.applicationDirectory, filename) parser = ConfigParser.ConfigParser() parser.read(path) |