commit ef8b477faaedb51a13f59a7207937f27aceb0ef2
parent 3d18fea5402c841c4ab34637cc6f2cee4ddf2e22
Author: Erik Letson <hmagellan@hmagellan.com>
Date: Sun, 4 Apr 2021 22:13:20 -0500
better exit
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/interface.py b/src/interface.py
@@ -1,6 +1,6 @@
#! /usr/bin/env python
-import os
+import os, sys
from .share import *
# Function def
diff --git a/src/share.py b/src/share.py
@@ -1,6 +1,6 @@
#! /usr/bin/env python
-import os, json
+import os, sys, json
# Values
DATA_DIR = "data"
@@ -12,7 +12,7 @@ INTERFACE_FUNCS = {
"new_page" : [0, "new_page"],
"edit_page" : [0, "edit_page"],
"sync_site" : [0, "sync_site"],
- "exit" : [quit, 0]
+ "exit" : [sys.exit, 0]
}
# Loading