From 10144b712162327d5d70ecc0fb2a43ef7a0bcf64 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Thu, 28 Oct 2010 19:11:25 +0100 Subject: [PATCH] Cope with using a distribution version of 0install Error was: KeyError: '0RELEASE_ZEROINSTALL' --- 0release | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/0release b/0release index e158083..5ada74a 100755 --- a/0release +++ b/0release @@ -5,7 +5,9 @@ from optparse import OptionParser import os, sys -sys.path.insert(1, os.environ['0RELEASE_ZEROINSTALL']) +zi = os.environ.get("0RELEASE_ZEROINSTALL", None) +if zi is not None: + sys.path.insert(0, zi) from zeroinstall import SafeException from zeroinstall.injector import reader, model -- 2.11.4.GIT