From 08fbdb862d71aad25b5c7d5d1c760c3d0910c298 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Thu, 11 Mar 2021 20:40:27 -0400 Subject: [PATCH] Update nxdt_host.py --- nxdt_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxdt_host.py b/nxdt_host.py index 02175e7..687e46a 100644 --- a/nxdt_host.py +++ b/nxdt_host.py @@ -530,7 +530,7 @@ def main(): os.mkdir(g_outputDir) else: # Create 'nxdumptool' subdirectory in the directory where the script is located. - g_outputDir = (sys.path[0] + os.path.sep + 'nxdumptool') + g_outputDir = (os.path.abspath(os.path.dirname(__file__)) + os.path.sep + 'nxdumptool') if os.path.exists(g_outputDir) == False: os.mkdir(g_outputDir)