Changeset 1164


Ignore:
Timestamp:
12/01/21 02:20:28 (8 weeks ago)
Author:
sz
Message:

describe the use of lib_path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/frams.py

    r1160 r1164  
    341341        global c_api  # access global variable
    342342        if lib_path is not None and os.name == 'posix':
    343                 lib_name = os.path.join(lib_path, lib_name)  # currently we always have lib_path (even if it is incorrect), but hypothetically it could work with lib_path==None and then load .so from some default system path without './'
     343                lib_name = os.path.join(lib_path, lib_name)  # lib_path is always set ('.' when not specified). for the (currently unused) case of lib_path==None the resulting lib_name is a bare filename without any path, which loads the library from a system-configured location.
    344344        try:
    345345                c_api = ctypes.CDLL(lib_name)  # if accessing this module from multiple threads, they will all share a single c_api and access the same copy of the library and its data. If you want separate independent copies, read the comment at the top of this file on using the "multiprocessing" module.
Note: See TracChangeset for help on using the changeset viewer.