We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a0707 commit 8856c4dCopy full SHA for 8856c4d
PyPartMC/__init__.py
@@ -3,16 +3,11 @@
3
from contextlib import contextmanager
4
from pathlib import Path
5
6
-## https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
7
-#if hasattr(os, 'add_dll_directory'): # Python 3.8+ on Windows
8
-# path = os.path.dirname(__file__)
9
-# print(path)
10
-# os.add_dll_directory(path)
11
-
12
# https://github.com/diegoferigo/cmake-build-extension/blob/master/src/cmake_build_extension/__init__.py
13
@contextmanager
14
def build_extension_env():
15
cookies = []
+ # https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
16
if hasattr(os, "add_dll_directory"):
17
for path in os.environ.get("PATH", "").split(os.pathsep):
18
if path and Path(path).is_absolute() and Path(path).is_dir():
0 commit comments