Pass helpers into strings.load_strings instead of importing it, so fix issue with cx_Freeze in Windows

This commit is contained in:
Micah Lee 2016-09-04 20:09:18 -07:00
parent 7e8b3e1750
commit dbf4af02ac
3 changed files with 3 additions and 6 deletions

View file

@ -284,7 +284,7 @@ def main():
"""
The main() function implements all of the logic that the GUI version of onionshare uses.
"""
strings.load_strings()
strings.load_strings(helpers)
print(strings._('version_string').format(helpers.get_version()))
# start the Qt app