Changeset 1189


Ignore:
Timestamp:
11/25/22 23:12:21 (2 months ago)
Author:
Maciej Komosinski
Message:

Only absolute paths are accepted by os.add_dll_directory()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/frams.py

    r1178 r1189  
    337337                        os.chdir(lib_path)  # because under Windows, frams-objects.dll requires other dll's which reside in the same directory, so we must change current dir for them to be found while loading the main dll.
    338338                else:
    339                         os.add_dll_directory(lib_path)
     339                        os.add_dll_directory(os.path.abspath(lib_path))
    340340        abs_data = os.path.join(os.path.abspath(lib_path), "data")  # use absolute path for -d and -D so python is free to cd anywhere without confusing Framsticks
    341341
Note: See TracChangeset for help on using the changeset viewer.