added script path detection
prepare for PyInstaller
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from argparser import argparser
|
||||
from classes import *
|
||||
from functions import *
|
||||
from helpers import *
|
||||
|
||||
def main():
|
||||
args = argparser.parse_args()
|
||||
@@ -11,6 +10,7 @@ def main():
|
||||
build_site()
|
||||
case "init":
|
||||
init_site()
|
||||
return
|
||||
case "new" | "create" | "edit":
|
||||
edit_content(args.filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user