summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@macaw.me>2020-06-13 23:00:48 +0800
committerFrederick Yin <fkfd@macaw.me>2020-06-13 23:00:48 +0800
commitc84755a652ed4459ae53f51f04de11756ca376d2 (patch)
treeba7793275592763ffe00a4ac39c2a6e47fdd5f39
parent89d16bb05a61936658ae2939d57e2c3e5f726a6b (diff)
Separate CGI executable from cgi.py
-rwxr-xr-xgit-gmi/cgi3
-rw-r--r--[-rwxr-xr-x]git-gmi/cgi.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/git-gmi/cgi b/git-gmi/cgi
new file mode 100755
index 0000000..c0e0d25
--- /dev/null
+++ b/git-gmi/cgi
@@ -0,0 +1,3 @@
+#!/home/fakefred/p/git.gmi/venv/bin/python3.8
+# gotta change the executable path before running
+import cgi.py \ No newline at end of file
diff --git a/git-gmi/cgi.py b/git-gmi/cgi.py
index c243ccd..9f0e1a9 100755..100644
--- a/git-gmi/cgi.py
+++ b/git-gmi/cgi.py
@@ -1,5 +1,3 @@
-#!/home/fakefred/p/git.gmi/venv/bin/python3.8
-# gotta change the executable path before running
from git import *
from const import *
from os import environ, listdir