Fixed python error if LD_LIBRARY_PATH empty
@@ -21,7 +21,8 @@ MMT_JAR = os.path.join(BUILD_DIR, 'mmt-' + MMT_VERSION + '.jar')
# Environment setup
os.environ['LD_LIBRARY_PATH'] = os.pathsep.join(
- [LIB_DIR] + [x for x in os.environ['LD_LIBRARY_PATH'].split(os.pathsep) if len(x) > 0])
+ [LIB_DIR] + [x for x in os.environ['LD_LIBRARY_PATH'].split(os.pathsep)
+ if len(x) > 0]) if 'LD_LIBRARY_PATH' in os.environ else LIB_DIR
os.environ['LC_ALL'] = 'en_US.UTF-8'
os.environ['LANG'] = 'en_US.UTF-8'
