Files
igl/python/tutorial/shared.py
T
2017-06-27 15:59:55 -04:00

23 lines
676 B
Python

import pyigl as igl
import sys
import os
TUTORIAL_SHARED_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../tutorial/shared/")
def check_dependencies(deps):
available = [hasattr(igl, m) for m in deps]
all_available = True
for i, d in enumerate(available):
if not d:
all_available = False
print("The libigl python bindings were compiled without %s support. Please recompile with the CMAKE flag LIBIGL_WITH_%s." %(deps[i], deps[i].upper()))
if not all_available:
sys.exit(-1)
def print_usage(key_dict):
print("Usage:")
for k in key_dict.keys():
print("%s : %s" %(k, key_dict[k]))