diff options
Diffstat (limited to 'example/sync.py')
-rwxr-xr-x | example/sync.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/example/sync.py b/example/sync.py index 7cf0f72..b2ff7ea 100755 --- a/example/sync.py +++ b/example/sync.py @@ -1,11 +1,14 @@ #!/usr/bin/env python +from __future__ import absolute_import, print_function + import os import sys + parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, parentdir) - from confman import ConfigSource + options = { 'tags': ['desktop'], 'hostname': 'test', @@ -16,5 +19,5 @@ samples_path = os.path.join(os.path.dirname(__file__), 'src') c = ConfigSource(samples_path, "/tmp/dotfiles-test", None, options) c.sync() -print -print repr(c) +print() +print(repr(c)) |