From: Kevin A. <ka...@us...> - 2004-08-03 15:57:21
|
Update of /cvsroot/pythoncard/PythonCard/samples/gadflyDatabase In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14211/gadflyDatabase Modified Files: gadflyDatabase.py Log Message: fixed path issue with config loading Index: gadflyDatabase.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/gadflyDatabase/gadflyDatabase.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gadflyDatabase.py 14 Apr 2004 02:38:48 -0000 1.3 --- gadflyDatabase.py 3 Aug 2004 15:57:12 -0000 1.4 *************** *** 24,28 **** if __name__ == '__main__': # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(sys.argv[0]), CONFIG_FILE) parser = ConfigParser.ConfigParser() parser.read(path) --- 24,28 ---- if __name__ == '__main__': # assume the ini file is in the same directory as the script ! path = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), CONFIG_FILE) parser = ConfigParser.ConfigParser() parser.read(path) |