also add some bugs

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-08 02:56:02 +02:00
parent 78a5bbf6e8
commit d0eeafd228
2 changed files with 11 additions and 2 deletions

View file

@ -63,17 +63,24 @@ def base_directory():
os.chdir(os.path.join(os.path.dirname(__file__), os.pardir))
return os.getcwd()
def remote_base_directory():
return "/var/lib/cdist"
def conf_directory():
"""Returns path to main configuration directory"""
return os.path.join(base_directory(), "conf")
def remote_conf_directory():
"""Returns path to remote main configuration directory"""
return os.path.join(remote_base_directory(), "conf")
def global_explorer_directory():
"""Returns path to directory containing the global explorers"""
return os.path.join(conf_directory(), "explorer")
def remote_global_explorer_directory():
"""Returns path to directory containing the global explorers"""
return os.path.join(conf_directory(), "explorer")
"""Returns path to the remote directory containing the global explorers"""
return os.path.join(remote_conf_directory(), "explorer")
def list_global_explorers():
"""Return list of available explorers"""

View file

@ -1,2 +1,4 @@
- rewrite in python?
- support non-ssh access?
- Bug: os.path.join() may be wrong for the remote side!