From c2ec872c77e09b8696ef00b3006b961da9bcc3ce Mon Sep 17 00:00:00 2001 From: Sayed Bilal Bari Date: Mon, 15 Jul 2024 11:18:30 -0500 Subject: [PATCH] __file__ to system argument Signed-off-by: Sayed Bilal Bari --- nds-h/nds_h_power.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nds-h/nds_h_power.py b/nds-h/nds_h_power.py index be2dc98..e06d7bf 100644 --- a/nds-h/nds_h_power.py +++ b/nds-h/nds_h_power.py @@ -37,7 +37,7 @@ from pyspark.sql import SparkSession import os import sys -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')