Only use pythonLocation if it is available

This commit is contained in:
Kovid Goyal 2020-07-07 08:57:50 +05:30
parent d506fa0565
commit 907db09a58
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -106,7 +106,7 @@ def main():
if is_bundle:
setup_bundle_env()
else:
if not is_macos:
if not is_macos and 'pythonLocation' in os.environ:
os.environ['LD_LIBRARY_PATH'] = '{}/lib'.format(os.environ['pythonLocation'])
action = sys.argv[-1]
if action in ('build', 'package'):