1
1
# -*- mode: python ; coding: utf-8 -*-
2
2
3
+ # ------------ Modify here! -------------
4
+ app_name = "Contract.app"
5
+ project_dir = "/Users/yhh/github-repo/contract-generator-pyside2"
6
+ templates_dir = "/Users/yhh/github-repo/contract-generator-pyside2/templates"
7
+ font_file_path = "/System/Library/Fonts/Helvetica.ttc"
8
+ # ---------------------------------------
3
9
4
10
block_cipher = None
5
11
6
12
# include files
7
- cairocffi_version_path = ("/opt/miniconda3/envs/contract_generator_pyside2/lib/python3.6/site-packages/cairocffi/VERSION" , "cairocffi" )
8
- weasyprint_version_path = ("/opt/miniconda3/envs/contract_generator_pyside2/lib/python3.6/site-packages/weasyprint/VERSION" , "weasyprint" )
9
- pyphen_dir = ("/opt/miniconda3/envs/contract_generator_pyside2/lib/python3.6/site-packages/pyphen/dictionaries" , "pyphen/dictionaries" )
10
- cairosvg_version_path = ("/opt/miniconda3/envs/contract_generator_pyside2/lib/python3.6/site-packages/cairosvg/VERSION" , "cairosvg" )
11
- font_path = ("/System/Library/Fonts/Helvetica.ttc" , "font" )
13
+ font_path = (font_file_path , "font" )
12
14
13
15
a = Analysis (['contract_generator.py' ],
14
- pathex = ['/Users/yhh/github-repo/contract-generator-pyside2' ],
16
+ pathex = [project_dir ],
15
17
binaries = [],
16
- datas = [cairocffi_version_path ,
17
- weasyprint_version_path ,
18
- pyphen_dir ,
19
- cairosvg_version_path ,
20
- font_path ],
18
+ datas = [font_path ],
21
19
hiddenimports = [],
22
20
hookspath = [],
23
21
runtime_hooks = [],
@@ -28,7 +26,7 @@ a = Analysis(['contract_generator.py'],
28
26
noarchive = False )
29
27
30
28
# include the whole directory
31
- a .datas += Tree ("/Users/yhh/github-repo/contract-generator-pyside2/templates" , prefix = "templates" )
29
+ a .datas += Tree (templates_dir , prefix = "templates" )
32
30
33
31
pyz = PYZ (a .pure , a .zipped_data ,
34
32
cipher = block_cipher )
@@ -47,6 +45,6 @@ exe = EXE(pyz,
47
45
runtime_tmpdir = None ,
48
46
console = False )
49
47
app = BUNDLE (exe ,
50
- name = 'contract_generator.app' ,
48
+ name = app_name ,
51
49
icon = None ,
52
50
bundle_identifier = None )
0 commit comments