mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
refactor: unify project handling (cmdline = projects/default)
This commit is contained in:
+3
-9
@@ -1,5 +1,8 @@
|
||||
import logging
|
||||
from model.defs import *
|
||||
|
||||
logger = logging.getLogger("Views")
|
||||
|
||||
|
||||
class Settings():
|
||||
def __init__(self, web=""):
|
||||
@@ -28,15 +31,6 @@ class Settings():
|
||||
self.generate_shc_from_asm: bool = True
|
||||
|
||||
|
||||
def prep(self):
|
||||
self.main_dir = "{}{}/".format(PATH_CARRIER, self.source_style.value)
|
||||
self.template_path = self.main_dir + "template.c"
|
||||
self.main_c_path = self.main_dir + "main.c"
|
||||
self.main_asm_path = self.main_dir + "main.asm"
|
||||
self.main_exe_path = self.main_dir + "main.exe"
|
||||
self.main_shc_path = self.main_dir + "main.bin"
|
||||
|
||||
|
||||
def prep_web(self, project_name):
|
||||
self.main_dir = "{}{}/".format(PATH_WEB_PROJECT, project_name)
|
||||
self.template_path = self.main_dir + "template.c"
|
||||
|
||||
Reference in New Issue
Block a user