Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
#48 added subsync-cmd target as workaround for missing command line
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Szymaniak committed Feb 9, 2020
1 parent 862393b commit db7b955
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion subsync/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from subsync import translations
translations.init()

import sys
import sys, os
from subsync import cmdargs
from subsync import loggercfg
from subsync.settings import settings
Expand Down Expand Up @@ -58,6 +58,8 @@ def initConfig(args):
def shouldUseCli():
if settings().cli:
return True
if os.path.basename(os.path.splitext(sys.argv[0])[0]) == 'subsync-cmd':
return True
try:
import wx
return False
Expand Down
13 changes: 13 additions & 0 deletions windows.spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,21 @@ main_dbg = EXE(main_pyz,
console=True,
icon='resources/icon.ico')

main_cmd = EXE(main_pyz,
main_a.scripts,
[],
exclude_binaries=True,
name='subsync-cmd',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
icon='resources/icon.ico')

main_coll = COLLECT(main_exe,
main_dbg,
main_cmd,
main_a.binaries,
main_a.zipfiles,
main_a.datas,
Expand Down

0 comments on commit db7b955

Please sign in to comment.