aboutsummaryrefslogtreecommitdiffstats
path: root/example.py
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2010-01-05 13:20:49 +0100
committerLaurent Bachelier <laurent@bachelier.name>2010-01-05 13:20:49 +0100
commit622ab669ee96ff364896b98f854667ce44b4e567 (patch)
tree38ec56433b973f0c1855b3d306f2d5eec61279be /example.py
parentignore() function for ProgrammableConfigAction (diff)
downloadconfman-622ab669ee96ff364896b98f854667ce44b4e567.tar.xz
Added sample files
Diffstat (limited to 'example.py')
-rwxr-xr-xexample.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/example.py b/example.py
index 913c5ec..ccfc810 100755
--- a/example.py
+++ b/example.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-
from confman import ConfigSource
options = \
@@ -8,7 +7,11 @@ options = \
'hostname': 'test',
}
-c = ConfigSource("~/dotfiles", "/tmp/dotfiles-test", None, options)
+from sys import argv
+from os import path
+samples_path = path.join(path.dirname(argv[0]), 'samples')
+
+c = ConfigSource(samples_path, "/tmp/dotfiles-test", None, options)
c.analyze()
c.check()
c.sync()