Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrdjan committed Oct 25, 2019
2 parents 64e01ad + f1e7522 commit 98e2de2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pyrfc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@

# import from internal modules that they could be directly imported from
# the pyrfc package


# Set DLL path, due to https://docs.python.org/3.8/whatsnew/3.8.html#bpo-36085-whatsnew
import os
if os.name == 'nt':
try:
os.add_dll_directory(os.path.join(os.environ["SAPNWRFC_HOME"], "lib"))
except Exception:
pass

from pyrfc._exception import (
RFCError,
RFCLibError,
Expand Down

0 comments on commit 98e2de2

Please sign in to comment.