# -*- mode: python -*-
import osfrom kivy.tools.packaging.pyinstaller_hooks import install_hooksimport kivy.core.video
gst_plugin_path = os.environ.get('GST_PLUGIN_PATH').split('lib')[0]
install_hooks(globals())
a = Analysis(['../NXconnect 0.1/main.py'], pathex=['C:\\Users\\Erik\\Desktop\\NX-Studio\\NXconnect 0.1'], hiddenimports=[], runtime_hooks=None)pyz = PYZ(a.pure)exe = EXE(pyz, a.scripts, exclude_binaries=True, name='nxconnect.exe', debug=False, strip=None, upx=True, console=True )coll = COLLECT(exe, Tree('../NXconnect 0.1/'), Tree(gst_plugin_path), Tree(os.path.join(gst_plugin_path, 'bin')), a.binaries, a.zipfiles, a.datas, strip=None, upx=True, name='nxconnect')
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# -*- mode: python -*-
import os
from kivy.tools.packaging.pyinstaller_hooks import install_hooksimport kivy.core.video
# note: changed these values to make sense in my own systemgst_plugin_path = os.environ.get('GST_PLUGIN_PATH')gst_bin_path = os.path.join(gst_plugin_path.split('lib')[0], 'bin')
install_hooks(globals())
####################################################### Gather additional files / directories## from the source dir to destination dir## destination is relative to app.exe root dir
def gather(destdir,sourcedir): def gather_files(sourcedir,sourcelist): for item in os.listdir(sourcedir): filepath = os.path.join(sourcedir,item) if os.path.isfile(filepath): sourcelist.append(filepath) else: gather_files(filepath,sourcelist) sourcelist = [] if os.path.isfile(sourcedir): # a single file was requested sourcelist.append(sourcedir) else: gather_files(sourcedir,sourcelist)
datalist = [] for location in sourcelist: destination = location.replace(sourcedir,destdir) datalist.append((destination,location,'DATA')) return datalist#######################################################
a = Analysis(['../NXconnect 0.1/main.py'], pathex=['C:\\Users\\Erik\\Desktop\\NX-Studio\\NXconnect 0.1'], hiddenimports=[], runtime_hooks=None)
######################################## gathering all my project files a.datas += gather('data','data')a.datas += gather('.','..\\NXconnect 0.1\\nxconnect.kv')
######################################## gathering gstreamer specific filesa.datas += gather('lib\\gstreamer-1.0',gst_plugin_path)a.datas += gather('.',gst_bin_path)
pyz = PYZ(a.pure)exe = EXE(pyz, a.scripts, exclude_binaries=True, name='nxconnect.exe', debug=False, strip=None, upx=True,
console=False )coll = COLLECT(exe,