aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2010-01-06 14:42:44 +0100
committerLaurent Bachelier <laurent@bachelier.name>2010-01-06 14:42:44 +0100
commitb83b4aaa1f16d289a15b427908d17dd68572e97a (patch)
treeca5356eb8585e78a0c905b96daf400db51729b81
parentMore explicit exceptions (diff)
downloadconfman-b83b4aaa1f16d289a15b427908d17dd68572e97a.tar.xz
Fixed symlinks relative path on subdirectories
-rw-r--r--confman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/confman.py b/confman.py
index 4ae7517..4faf587 100644
--- a/confman.py
+++ b/confman.py
@@ -74,7 +74,7 @@ class SymlinkConfigAction(ConfigAction):
else:
self._makedirs()
- relsource = os.path.relpath(source, self.config.dest)
+ relsource = os.path.normpath(os.path.relpath(source, os.path.join(self.config.dest, self.relpath)))
os.symlink(relsource, dest)
print "Created new link: "+dest+" => "+source