git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port _quote() from old version of pgdb. Simpliy code.
[plcapi.git]
/
PLC
/
Config.py
diff --git
a/PLC/Config.py
b/PLC/Config.py
index
7d666b3
..
23b4df2
100644
(file)
--- a/
PLC/Config.py
+++ b/
PLC/Config.py
@@
-7,6
+7,7
@@
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
# $Id$
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
# $Id$
+# $URL$
#
import os
#
import os
@@
-35,11
+36,11
@@
class Config:
except:
# Try myplc directory
try:
except:
# Try myplc directory
try:
- execfile(
file
, self.__dict__)
+ execfile(
myplc + os.sep + "plc_config"
, self.__dict__)
except:
raise PLCAPIError("Could not find plc_config in " + \
file + ", " + \
except:
raise PLCAPIError("Could not find plc_config in " + \
file + ", " + \
- myplc + "plc_config")
+ myplc +
os.sep +
"plc_config")
class XMLConfig:
"""
class XMLConfig:
"""
@@
-64,7
+65,7
@@
class XMLConfig:
except:
raise PLCAPIError("Could not find plc_config.xml in " + \
file + ", " + \
except:
raise PLCAPIError("Could not find plc_config.xml in " + \
file + ", " + \
- myplc + "plc_config.xml")
+ myplc +
os.sep +
"plc_config.xml")
for (category, variablelist) in cfg.variables().values():
for variable in variablelist.values():
for (category, variablelist) in cfg.variables().values():
for variable in variablelist.values():