summaryrefslogtreecommitdiff
path: root/backend/resilient/__init__.py
diff options
context:
space:
mode:
authorKarl Semich <karl@Karl-Semich--0xloem-at-gmail-dot-com--txt-1-207-518-8256.Caring.goals.words.and.actions.are.more.important.than.anything>2020-03-02 14:28:07 -0500
committerKarl Semich <karl@Karl-Semich--0xloem-at-gmail-dot-com--txt-1-207-518-8256.Caring.goals.words.and.actions.are.more.important.than.anything>2020-03-02 14:28:07 -0500
commitaad7f9b7d0e186bfcb65c4de46a562838aca35cc (patch)
treec2c69a663925781c8eab96e655970a51248f22e5 /backend/resilient/__init__.py
parent061b64cea0cd00f5336d8a6fd1ccbafedbea758e (diff)
downloadstandingwithresilience-aad7f9b7d0e186bfcb65c4de46a562838aca35cc.tar.gz
standingwithresilience-aad7f9b7d0e186bfcb65c4de46a562838aca35cc.zip
fix bug with ikiwiki init
Diffstat (limited to 'backend/resilient/__init__.py')
-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")