From 263d2e46c88e7064251fa9b1e29a63687b0b0258 Mon Sep 17 00:00:00 2001 From: Silas Kraume Date: Tue, 23 Apr 2024 17:43:28 +0200 Subject: [PATCH] fixed working dir --- cat_win/src/cat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cat_win/src/cat.py b/cat_win/src/cat.py index 4730760b..7464bad2 100644 --- a/cat_win/src/cat.py +++ b/cat_win/src/cat.py @@ -65,7 +65,7 @@ coloramaInit(strip=False) -working_dir = os.path.dirname(os.path.realpath(__file__)) +working_dir = os.path.abspath(os.path.join(os.path.realpath(__file__), os.pardir, os.pardir)) on_windows_os = platform.system() == 'Windows' file_uri_prefix = 'file://' + '/' * on_windows_os