mirror of
https://github.com/Syncplay/syncplay
synced 2025-01-30 18:51:50 +00:00
Warn of missing/unused strings when compiling EXE
This commit is contained in:
parent
ac3e0f39c6
commit
aa43e91fef
@ -16,6 +16,12 @@ import syncplay
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from syncplay.messages import getMissingStrings
|
||||
missingStrings = getMissingStrings()
|
||||
if missingStrings is not None and missingStrings is not "":
|
||||
import warnings
|
||||
warnings.warn("MISSING/UNUSED STRINGS DETECTED:\n{}".format(missingStrings))
|
||||
|
||||
p = "C:\\Program Files (x86)\\NSIS\\Unicode\\makensis.exe" #TODO: how to move that into proper place, huh
|
||||
NSIS_COMPILE = p if os.path.isfile(p) else "makensis.exe"
|
||||
OUT_DIR = "syncplay v{}".format(syncplay.version)
|
||||
|
@ -112,7 +112,7 @@ class SyncplayClient(object):
|
||||
if constants.DEBUG_MODE and constants.WARN_ABOUT_MISSING_STRINGS:
|
||||
missingStrings = getMissingStrings()
|
||||
if missingStrings is not None and missingStrings is not "":
|
||||
self.ui.showDebugMessage("MISSING STRINGS DETECTED:\n{}".format(missingStrings))
|
||||
self.ui.showDebugMessage("MISSING/UNUSED STRINGS DETECTED:\n{}".format(missingStrings))
|
||||
|
||||
def initProtocol(self, protocol):
|
||||
self._protocol = protocol
|
||||
|
Loading…
Reference in New Issue
Block a user