From 52d0a84442e37f409e3473c365ba92465187a392 Mon Sep 17 00:00:00 2001 From: Thomas Edward Kingstone Date: Wed, 15 Nov 2023 09:38:14 +0000 Subject: [PATCH] Make paths Path objects instead of strings Co-authored-by: Tristan Gerrish <10939984+tg359@users.noreply.github.com> --- .../Python/src/ladybugtools_toolkit/bhom/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/__init__.py b/LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/__init__.py index 391e7143..0a3d66bc 100644 --- a/LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/__init__.py +++ b/LadybugTools_Engine/Python/src/ladybugtools_toolkit/bhom/__init__.py @@ -1,16 +1,16 @@ """Root for the bhom subpackage.""" -#from pathlib import Path # pylint: disable=E0401 +from pathlib import Path # pylint: disable=E0401 from os import path from win32api import HIWORD, LOWORD, GetFileVersionInfo -BHOM_ASSEMBLIES_DIRECTORY = path.expandvars("%PROGRAMDATA%/BHoM/Assemblies") -BHOM_DIRECTORY = path.expandvars("%PROGRAMDATA%/BHoM") -BHOM_LOG_FOLDER = path.expandvars("%PROGRAMDATA%/BHoM/Logs") +BHOM_ASSEMBLIES_DIRECTORY = Path(path.expandvars("%PROGRAMDATA%/BHoM/Assemblies")) +BHOM_DIRECTORY = Path(path.expandvars("%PROGRAMDATA%/BHoM")) +BHOM_LOG_FOLDER = Path(path.expandvars("%PROGRAMDATA%/BHoM/Logs")) -PYTHON_CODE_DIRECTORY = path.expandvars("%PROGRAMDATA%/BHoM/Extensions/PythonCode") -PYTHON_ENVIRONMENTS_DIRECTORY = path.expandvars("%PROGRAMDATA%/BHoM/Extensions/PythonEnvironments") +PYTHON_CODE_DIRECTORY = Path(path.expandvars("%PROGRAMDATA%/BHoM/Extensions/PythonCode")) +PYTHON_ENVIRONMENTS_DIRECTORY = Path(path.expandvars("%PROGRAMDATA%/BHoM/Extensions/PythonEnvironments")) TOOLKIT_NAME = "LadybugTools_Toolkit"