diff options
author | Laurent Bachelier <laurent@bachelier.name> | 2013-03-19 00:43:13 +0100 |
---|---|---|
committer | Laurent Bachelier <laurent@bachelier.name> | 2013-03-19 00:43:39 +0100 |
commit | 7dde878e67e31d4b88ac8e0bc3c95ad6de7fd551 (patch) | |
tree | e9d10e3716d4e9000e09c55336706c31bbf02d6a | |
parent | Document ".F" (diff) | |
download | confman-7dde878e67e31d4b88ac8e0bc3c95ad6de7fd551.tar.xz |
Move samples to a single directory
-rw-r--r-- | MANIFEST.in | 3 | ||||
-rw-r--r-- | example/src/_conf2_desktop (renamed from samples/_conf2_desktop) | 0 | ||||
-rw-r--r-- | example/src/_conf3_test2 (renamed from samples/_conf3_test2) | 0 | ||||
-rw-r--r-- | example/src/_template2 (renamed from samples/_template2) | 0 | ||||
-rw-r--r-- | example/src/conf2.p.py (renamed from samples/conf2.p.py) | 0 | ||||
-rw-r--r-- | example/src/conf3.p.py (renamed from samples/conf3.p.py) | 0 | ||||
-rw-r--r-- | example/src/conf4.p.py (renamed from samples/conf4.p.py) | 0 | ||||
-rw-r--r-- | example/src/copyfile.copy (renamed from samples/copyfile.copy) | 0 | ||||
-rw-r--r-- | example/src/copyfileonce.copyonce (renamed from samples/copyfileonce.copyonce) | 0 | ||||
-rw-r--r-- | example/src/emptyfile.empty (renamed from samples/emptyfile.empty) | 0 | ||||
-rw-r--r-- | example/src/simplefile (renamed from samples/simplefile) | 0 | ||||
-rw-r--r-- | example/src/template1.p.py (renamed from samples/template1.p.py) | 0 | ||||
-rw-r--r-- | example/src/template2.p.py (renamed from samples/template2.p.py) | 0 | ||||
-rw-r--r-- | example/src/test.F/f (renamed from samples/test.F/f) | 0 | ||||
-rwxr-xr-x | example/sync.py (renamed from example.py) | 8 |
15 files changed, 7 insertions, 4 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index ea7ebbe..f3a772d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,2 @@ include README LICENSE -include example.py -recursive-include samples * +recursive-include example * diff --git a/samples/_conf2_desktop b/example/src/_conf2_desktop index 3664276..3664276 100644 --- a/samples/_conf2_desktop +++ b/example/src/_conf2_desktop diff --git a/samples/_conf3_test2 b/example/src/_conf3_test2 index 10ddd6d..10ddd6d 100644 --- a/samples/_conf3_test2 +++ b/example/src/_conf3_test2 diff --git a/samples/_template2 b/example/src/_template2 index c87ed22..c87ed22 100644 --- a/samples/_template2 +++ b/example/src/_template2 diff --git a/samples/conf2.p.py b/example/src/conf2.p.py index f9ee54b..f9ee54b 100644 --- a/samples/conf2.p.py +++ b/example/src/conf2.p.py diff --git a/samples/conf3.p.py b/example/src/conf3.p.py index 6e98ce8..6e98ce8 100644 --- a/samples/conf3.p.py +++ b/example/src/conf3.p.py diff --git a/samples/conf4.p.py b/example/src/conf4.p.py index 74c2212..74c2212 100644 --- a/samples/conf4.p.py +++ b/example/src/conf4.p.py diff --git a/samples/copyfile.copy b/example/src/copyfile.copy index cabc14c..cabc14c 100644 --- a/samples/copyfile.copy +++ b/example/src/copyfile.copy diff --git a/samples/copyfileonce.copyonce b/example/src/copyfileonce.copyonce index ce01362..ce01362 100644 --- a/samples/copyfileonce.copyonce +++ b/example/src/copyfileonce.copyonce diff --git a/samples/emptyfile.empty b/example/src/emptyfile.empty index e69de29..e69de29 100644 --- a/samples/emptyfile.empty +++ b/example/src/emptyfile.empty diff --git a/samples/simplefile b/example/src/simplefile index f2c6369..f2c6369 100644 --- a/samples/simplefile +++ b/example/src/simplefile diff --git a/samples/template1.p.py b/example/src/template1.p.py index 2c6776f..2c6776f 100644 --- a/samples/template1.p.py +++ b/example/src/template1.p.py diff --git a/samples/template2.p.py b/example/src/template2.p.py index eb0d0b8..eb0d0b8 100644 --- a/samples/template2.p.py +++ b/example/src/template2.p.py diff --git a/samples/test.F/f b/example/src/test.F/f index e69de29..e69de29 100644 --- a/samples/test.F/f +++ b/example/src/test.F/f diff --git a/example.py b/example/sync.py index 78f515f..7cf0f72 100755 --- a/example.py +++ b/example/sync.py @@ -1,4 +1,9 @@ #!/usr/bin/env python +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 = { @@ -6,8 +11,7 @@ options = { 'hostname': 'test', } -from os import path -samples_path = path.join(path.dirname(__file__), 'samples') +samples_path = os.path.join(os.path.dirname(__file__), 'src') c = ConfigSource(samples_path, "/tmp/dotfiles-test", None, options) c.sync() |