projects
/
pgarchives.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
844517e
)
Try to read the config file from the dir of the script..
author
Magnus Hagander
<magnus@hagander.net>
Sat, 7 Jul 2012 12:39:13 +0000
(14:39 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Sat, 7 Jul 2012 12:39:13 +0000
(14:39 +0200)
loader/load_message.py
patch
|
blob
|
blame
|
history
diff --git
a/loader/load_message.py
b/loader/load_message.py
index 526a39e831213fa1f34d911dc11dbcc9f3df4ce7..fb0050045dff4064667c13e7a73c25066e6821b8 100755
(executable)
--- a/
loader/load_message.py
+++ b/
loader/load_message.py
@@
-75,7
+75,7
@@
if __name__ == "__main__":
log.set(opt.verbose)
cfg = ConfigParser()
- cfg.read('
load_message.ini'
)
+ cfg.read('
%s/load_message.ini' % os.path.realpath(os.path.dirname(sys.argv[0]))
)
try:
connstr = cfg.get('db','connstr')
except: