Skip to content

Commit

Permalink
Make paths Path objects instead of strings
Browse files Browse the repository at this point in the history
Co-authored-by: Tristan Gerrish <[email protected]>
  • Loading branch information
Tom-Kingstone and tg359 authored Nov 15, 2023
1 parent 9271bb5 commit 52d0a84
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit 52d0a84

Please sign in to comment.