diff --git a/SimConnect/SimConnect.py b/SimConnect/SimConnect.py index 89eae8b5..1531c844 100644 --- a/SimConnect/SimConnect.py +++ b/SimConnect/SimConnect.py @@ -8,7 +8,7 @@ import os import threading -_library_path = os.path.abspath(__file__).replace(".py", ".dll") +_library_path = os.path.splitext(os.path.abspath(__file__))[0] + '.dll' LOGGER = logging.getLogger(__name__)