diff --git a/nds-h/nds_h_power.py b/nds-h/nds_h_power.py index 04a2f66..680feb2 100644 --- a/nds-h/nds_h_power.py +++ b/nds-h/nds_h_power.py @@ -39,7 +39,7 @@ import sys import re -parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) +parent_dir = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..')) # Construct the path to the utils directory utils_dir = os.path.join(parent_dir, 'utils')