Skip to content

Commit 6027f6f

Browse files
authored
Find libum in library (#484)
1 parent e1b5d07 commit 6027f6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ephys_link.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- mode: python ; coding: utf-8 -*-
22

33
from argparse import ArgumentParser
4+
from importlib import resources
45

56
from PyInstaller.utils.hooks import collect_submodules
67

@@ -15,11 +16,14 @@ FILE_NAME = f"EphysLink-v{version}"
1516
# Collect binding modules.
1617
bindings = [binding for binding in collect_submodules("ephys_link.bindings") if binding != "ephys_link.bindings"]
1718

19+
# Collect Sensapex SDK.
20+
ump_sdk_path = str(resources.files('sensapex').joinpath('libum.dll'))
21+
1822
# noinspection PyUnresolvedReferences
1923
a = Analysis(
2024
['src\\ephys_link\\__main__.py'],
2125
pathex=[],
22-
binaries=[],
26+
binaries=[(ump_sdk_path, 'sensapex')],
2327
datas=[],
2428
hiddenimports=['engineio.async_drivers.aiohttp'] + bindings,
2529
hookspath=[],

src/ephys_link/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.1.2"
1+
__version__ = "2.1.3"

0 commit comments

Comments
 (0)