Skip to content

Commit

Permalink
Fix data paths for build
Browse files Browse the repository at this point in the history
  • Loading branch information
ronpandolfi committed Jul 3, 2019
1 parent e6a1d4b commit 602ede1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Xi-cam.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- mode: python -*-
# Usage: pyinstall --path=C:\Windows\System32\downlevel Xi-cam.spec

import glob, os
import distributed
Expand All @@ -15,7 +16,7 @@ import PyQt5
block_cipher = None

from xicam.gui import static
datas_src = glob.glob(os.path.join(static.__path__[0],'**/*.*'), recursive=True)
datas_src = [path for path in glob.glob(os.path.join(static.__path__[0],'**/*.*'), recursive=True) if '__init__.py' not in path]
datas_dst = [os.path.dirname(os.path.relpath(path,static.__path__[0])) for path in datas_src]

datas_src.append(os.path.join(distributed.__path__[0],'distributed.yaml'))
Expand All @@ -41,15 +42,12 @@ pluginmanager.collectPlugins(paths=[xicam.core.__path__[0],xicam.plugins.__path_
plugins = pluginmanager.getAllPlugins()
datas_src.extend([plugin.path for plugin in plugins])
datas_dst.extend(['plugins']*len(plugins))
markerfiles = glob.glob('../**/*.yapsy-plugin', recursive=True)

markerfiles = list(map(os.path.abspath, glob.glob('**/*.yapsy-plugin', recursive=True)))
datas_src.extend(markerfiles)
datas_dst.extend(['plugins']*len(markerfiles))


print('datas:')
for data in zip(datas_dst, datas_src):
print(data)

a = Analysis(['run_xicam.py'],
pathex=['C:\\Users\\rp\\PycharmProjects\\Xi-cam'],
binaries=[],
Expand Down

0 comments on commit 602ede1

Please sign in to comment.