From 03d246d40df6677df9516ef53f7d6397a429e429 Mon Sep 17 00:00:00 2001 From: "U-BASIS\\dsmyda" <dsmyda@win-cyber-3257.basistech.net> Date: Mon, 4 Feb 2019 15:52:06 -0500 Subject: [PATCH] Fixed the setupDevRepos for cygwin --- setupDevRepos.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setupDevRepos.py b/setupDevRepos.py index 74c20af70..649407074 100644 --- a/setupDevRepos.py +++ b/setupDevRepos.py @@ -8,6 +8,7 @@ import os import subprocess +import ntpath import sys @@ -38,18 +39,18 @@ def main(): libvmdk_home = os.getenv("LIBVMDK_HOME") base_Library_path = {} if(libewf_home != None): - base_Library_path["libewf_64bit"] = os.path.dirname(libewf_home) + base_Library_path["libewf_64bit"] = ntpath.dirname(libewf_home) else: print('Please set the env variable LIBEWF_HOME') sys.exit(1) if(libvhdi_home != None): - base_Library_path["libvhdi_64bit"] = os.path.dirname(libvhdi_home) + base_Library_path["libvhdi_64bit"] = ntpath.dirname(libvhdi_home) else: print('Please set the env variable LIBVHDI_HOME') sys.exit(1) if(libvmdk_home != None): - base_Library_path["libvmdk_64bit"] = os.path.dirname(os.path.dirname(libvmdk_home)) + base_Library_path["libvmdk_64bit"] = ntpath.dirname(ntpath.dirname(libvmdk_home)) else: print('Please set the env variable LIBVMDK_HOME') sys.exit(1) -- GitLab