From aad7f9b7d0e186bfcb65c4de46a562838aca35cc Mon Sep 17 00:00:00 2001 From: Karl Semich Date: Mon, 2 Mar 2020 14:28:07 -0500 Subject: fix bug with ikiwiki init --- backend/resilient/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend') 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") -- cgit v1.2.3