Changeset 1166


Ignore:
Timestamp:
12/12/21 12:18:35 (3 years ago)
Author:
sz
Message:

on a mac the library file name is 'frams-objects.dylib'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/frams.py

    r1164 r1166  
    291291def init(*args):
    292292        """
    293         Initializes the connection to Framsticks dll/so.
     293        Initializes the connection to Framsticks dll/so/dylib.
    294294
    295295        Python programs do not have to know the Framstics path but if they know, just pass the path as the first argument.
     
    303303        frams_D = None
    304304        lib_path = None
    305         lib_name = 'frams-objects.so' if os.name == 'posix' else 'frams-objects.dll'
     305        lib_name = ('frams-objects.dylib' if sys.platform == 'darwin' else 'frams-objects.so') if os.name == 'posix' else 'frams-objects.dll'
    306306        initargs = []
    307307        for a in args:
Note: See TracChangeset for help on using the changeset viewer.