From 892fd72c70ad53eb01a626476afacf5967105d80 Mon Sep 17 00:00:00 2001 From: srinijammula Date: Sat, 7 Dec 2024 10:32:26 -0500 Subject: [PATCH] resolves import pygeoweaver issue in windows --- pygeoweaver/pgw_log_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoweaver/pgw_log_config.py b/pygeoweaver/pgw_log_config.py index c523743..253fb12 100644 --- a/pygeoweaver/pgw_log_config.py +++ b/pygeoweaver/pgw_log_config.py @@ -21,7 +21,7 @@ def setup_logging(): # Open the pgw_logging.ini file with open(logging_ini_path, 'rt') as f: config_str = f.read() - config_str = config_str.replace('%(log_file)s', os.path.expanduser(log_file)) + config_str = config_str.replace('%(log_file)s', os.path.abspath(log_file).replace('\\', '/')) config_file = f'{current_folder}/logging_temp.ini' with open(config_file, 'wt') as f: