From 6d3cb4474872ab9a805fee0a70bb4f4c066cb90e Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Mon, 22 Mar 2021 22:50:04 +0100 Subject: [PATCH] add hook for pyinstaller to add nixio info.json --- hook-nixio.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hook-nixio.py diff --git a/hook-nixio.py b/hook-nixio.py new file mode 100644 index 0000000..e9daff8 --- /dev/null +++ b/hook-nixio.py @@ -0,0 +1,10 @@ +import site +import glob +import os + +dist_sites = site.getsitepackages() +for ds in dist_sites: + nix_dirs = glob.glob(os.path.join(ds, "nixio/info.json")) + if len(nix_dirs) > 0: + datas = [(nix_dirs[0], 'nixio')] + break