git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35de55f
)
add basepath to be the directory name of the configuration file as requested by sever...
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Mon, 25 May 2009 15:52:08 +0000
(15:52 +0000)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Mon, 25 May 2009 15:52:08 +0000
(15:52 +0000)
geni/util/config.py
patch
|
blob
|
history
diff --git
a/geni/util/config.py
b/geni/util/config.py
index
8970a82
..
90aee0d
100644
(file)
--- a/
geni/util/config.py
+++ b/
geni/util/config.py
@@
-33,6
+33,7
@@
class Config:
loaded = False
path = os.path.dirname(os.path.abspath(__file__))
self.path = path
+ self.basepath = os.path.dirname(self.path)
filename = file.split(os.sep)[-1]
alt_file = path + os.sep + 'util' + os.sep + filename
geni_file = geni + os.sep + 'util' + os.sep + filename