Add flag to tailor minimal zip package to different OSes

This commit is contained in:
Veronica K. B. Olsen
2021-02-05 16:52:23 +01:00
parent e4e8b939e2
commit f8ef3e6754
3 changed files with 55 additions and 42 deletions
+6 -5
View File
@@ -1,11 +1,10 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
novelWriter Terminal Start Script
===================================
The main start script for the terminal
novelWriter Start Script
==========================
"""
import os
import sys
try:
@@ -13,9 +12,11 @@ try:
import PyQt5.QtGui # noqa: F401
import PyQt5.QtCore # noqa: F401
except Exception:
print("ERROR: Failed to load dependency python3-pyqt5")
print("ERROR: Failed to load dependency PyQt5")
sys.exit(1)
os.curdir = os.path.abspath(os.path.dirname(__file__))
if __name__ == "__main__":
import nw
nw.main(sys.argv[1:])