Skip to content
Snippets Groups Projects
Commit 0f97184a authored by rishwanth1995's avatar rishwanth1995
Browse files

exit when env not found

parent a3436f9f
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ environment: ...@@ -25,6 +25,7 @@ environment:
LIBEWF_HOME: "C:\\libewf_64bit" LIBEWF_HOME: "C:\\libewf_64bit"
POSTGRESQL_HOME_64: "C:\\Program Files\\PostgreSQL\\9.5" POSTGRESQL_HOME_64: "C:\\Program Files\\PostgreSQL\\9.5"
PYTHON: "C:\\Python36-x64" PYTHON: "C:\\Python36-x64"
JDK_HOME: C:\Program Files\Java\jdk1.8.0
services: services:
- postgresql95; - postgresql95;
......
...@@ -39,17 +39,18 @@ def main(): ...@@ -39,17 +39,18 @@ def main():
base_Library_path["libewf_64bit"] = os.path.dirname(libewf_home) base_Library_path["libewf_64bit"] = os.path.dirname(libewf_home)
else: else:
print('Please set the env variable LIBEWF_HOME') print('Please set the env variable LIBEWF_HOME')
sys.exit(1)
if(libvhdi_home != None): if(libvhdi_home != None):
base_Library_path["libvhdi_64bit"] = os.path.dirname(libvhdi_home) base_Library_path["libvhdi_64bit"] = os.path.dirname(libvhdi_home)
else: else:
print('Please set the env variable LIBVHDI_HOME') print('Please set the env variable LIBVHDI_HOME')
sys.exit(1)
if(libvmdk_home != None): if(libvmdk_home != None):
base_Library_path["libvmdk_64bit"] = os.path.dirname(os.path.dirname(libvmdk_home)) base_Library_path["libvmdk_64bit"] = os.path.dirname(os.path.dirname(libvmdk_home))
else: else:
print('Please set the env variable LIBVMDK_HOME') print('Please set the env variable LIBVMDK_HOME')
sys.exit(1)
setupLibrary(base_Library_path); setupLibrary(base_Library_path);
......
...@@ -213,6 +213,7 @@ def buildTSK(wPlatform, target): ...@@ -213,6 +213,7 @@ def buildTSK(wPlatform, target):
if not TSK_HOME: if not TSK_HOME:
print("Please set the TSK_HOME environment variable") print("Please set the TSK_HOME environment variable")
sys.exit(1)
else: else:
os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32")) os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment