add a console script

This commit is contained in:
2021-09-05 16:29:15 +08:00
parent 8c7d6db108
commit f8ed923d43
3 changed files with 15 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
from game_backuper.__main__ import main
def start():
import sys
try:
sys.exit(main())
except Exception:
sys.exit(-1)

View File

@@ -16,8 +16,5 @@ def main(cm=None):
if __name__ == "__main__":
import sys
try:
sys.exit(main())
except Exception:
sys.exit(-1)
from game_backuper import start
start()