Skip to content

Commit 98e2de2

Browse files
committed
Merge branch 'master' of https://github.com/SAP/PyRFC
2 parents 64e01ad + f1e7522 commit 98e2de2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/pyrfc/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414

1515
# import from internal modules that they could be directly imported from
1616
# the pyrfc package
17+
18+
19+
# Set DLL path, due to https://docs.python.org/3.8/whatsnew/3.8.html#bpo-36085-whatsnew
20+
import os
21+
if os.name == 'nt':
22+
try:
23+
os.add_dll_directory(os.path.join(os.environ["SAPNWRFC_HOME"], "lib"))
24+
except Exception:
25+
pass
26+
1727
from pyrfc._exception import (
1828
RFCError,
1929
RFCLibError,

0 commit comments

Comments
 (0)