diff options
author | Karl 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 |
---|---|---|
committer | Karl 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 |
commit | aad7f9b7d0e186bfcb65c4de46a562838aca35cc (patch) | |
tree | c2c69a663925781c8eab96e655970a51248f22e5 | |
parent | 061b64cea0cd00f5336d8a6fd1ccbafedbea758e (diff) | |
download | standingwithresilience-aad7f9b7d0e186bfcb65c4de46a562838aca35cc.tar.gz standingwithresilience-aad7f9b7d0e186bfcb65c4de46a562838aca35cc.zip |
fix bug with ikiwiki init
-rw-r--r-- | backend/resilient/__init__.py | 5 |
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") |