added script path detection

prepare for PyInstaller
This commit is contained in:
SG
2025-06-14 17:37:33 +03:00
parent 0b31079654
commit ed9d1dade2
6 changed files with 20 additions and 23 deletions

View File

@@ -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)