allow custom validation of args

This commit is contained in:
Radovan Bast
2015-10-12 16:57:27 +02:00
parent fd8ec93851
commit 1790e0723c
2 changed files with 30 additions and 6 deletions

View File

@ -9,6 +9,15 @@ import sys
import shutil
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
return True
def check_cmake_exists(cmake_command):
"""
Check whether CMake is installed. If not, print