summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/resilient/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py
index e441db9..03ba173 100644
--- a/backend/resilient/__init__.py
+++ b/backend/resilient/__init__.py
@@ -102,7 +102,10 @@ class ikiwiki:
found = (os.system("%s --version" % binary) == 0)
if not found:
binary = "%s/ikiwiki/ikiwiki.out" % dep_path
- os.environ['PERL5LIB'] += os.pathsep + os.path.join(dep_path, 'ikiwiki')
+ if os.environ.has_key('PERL5LIB'):
+ os.environ['PERL5LIB'] += ':' + os.path.join(dep_path, 'ikiwiki')
+ else:
+ os.environ['PERL5LIB'] = os.path.join(dep_path, 'ikiwiki')
found = (os.system("%s --version" % binary) == 0)
if not found:
print("ikiwiki not found: attempting to build")