From 04bcd8d9a16f0c053da916d8d57788f8851600a8 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Wed, 18 Dec 2019 16:12:23 +0100 Subject: HERE: use realpath() instead of abspath() because of failures seen in https://github.com/giampaolo/psutil/pull/1638#issuecomment-567013054 --- psutil/tests/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'psutil/tests/__init__.py') diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py index 6c629368..767524af 100644 --- a/psutil/tests/__init__.py +++ b/psutil/tests/__init__.py @@ -153,9 +153,10 @@ ASCII_FS = sys.getfilesystemencoding().lower() in ('ascii', 'us-ascii') # --- paths -ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) +ROOT_DIR = os.path.realpath( + os.path.join(os.path.dirname(__file__), '..', '..')) SCRIPTS_DIR = os.path.join(ROOT_DIR, 'scripts') -HERE = os.path.abspath(os.path.dirname(__file__)) +HERE = os.path.realpath(os.path.dirname(__file__)) # --- support -- cgit v1.2.1