Require BASEDIR in freeze.py.

This commit is contained in:
Florian Bruhin 2014-12-15 22:44:11 +01:00
parent d9a38fea1a
commit 86d91b9c3d

View File

@ -36,11 +36,8 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
from scripts import setupcommon from scripts import setupcommon
try: BASEDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)),
BASEDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.pardir)
os.path.pardir)
except NameError:
BASEDIR = None
def get_egl_path(): def get_egl_path():
@ -87,7 +84,6 @@ try:
**setupcommon.setupdata **setupcommon.setupdata
) )
finally: finally:
if BASEDIR is not None: path = os.path.join(BASEDIR, 'qutebrowser', 'git-commit-id')
path = os.path.join(BASEDIR, 'qutebrowser', 'git-commit-id') if os.path.exists(path):
if os.path.exists(path): os.remove(path)
os.remove(path)