git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup for using the config dir properly, and not an hard-wired ~/.sfi/
[sface.git]
/
sface
/
config.py
diff --git
a/sface/config.py
b/sface/config.py
index
bf94cbc
..
edb2924
100644
(file)
--- a/
sface/config.py
+++ b/
sface/config.py
@@
-1,7
+1,7
@@
# config for sface
# uses in this order
# command-line args
# config for sface
# uses in this order
# command-line args
-#
~/.sfi
/sfi_config
+#
<configdir>
/sfi_config
###
import os
###
import os
@@
-28,9
+28,8
@@
class Config:
]
def __init__ (self):
]
def __init__ (self):
- print 'WARNING - should pass config dir'
- self.dirname=os.path.expanduser("~/.sfi/")
- self.read_config()
+ # no need to do anything here, we need set_dirname later on
+ pass
def get_dirname (self):
return self.dirname
def get_dirname (self):
return self.dirname