1 # -*- mode: python -*-
\r
3 # We don't put these files in to actually include them in the script but to make the Analysis method scan them for imports
\r
4 a = Analysis(['electrum', 'gui/gui_classic.py', 'gui/gui_lite.py', 'gui/gui_text.py',
\r
5 'lib/util.py', 'lib/wallet.py', 'lib/simple_config.py',
\r
6 'lib/bitcoin.py', 'lib/deserialize.py'
\r
8 hiddenimports=["lib","gui"],
\r
9 pathex=['lib:gui:plugins'],
\r
12 ##### include mydir in distribution #######
\r
13 def extra_datas(mydir):
\r
14 def rec_glob(p, files):
\r
17 for d in glob.glob(p):
\r
18 if os.path.isfile(d):
\r
20 rec_glob("%s/*" % d, files)
\r
22 rec_glob("%s/*" % mydir, files)
\r
25 extra_datas.append((f, f, 'DATA'))
\r
28 ###########################################
\r
33 a.datas += extra_datas('data')
\r
36 a.datas += extra_datas('locale')
\r
38 # Py folders that are needed because of the magic import finding
\r
39 a.datas += extra_datas('gui')
\r
40 a.datas += extra_datas('lib')
\r
41 a.datas += extra_datas('plugins')
\r
47 name=os.path.join('build\\pyi.win32\\electrum', 'electrum.exe'),
\r
51 icon='icons/electrum.ico',
\r
53 # The console True makes an annoying black box pop up, but it does make Electrum accept command line options.
\r
62 icon='icons/electrum.ico',
\r
64 name=os.path.join('dist', 'electrum'))
\r