mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
refactor: more commandline usability cleanup
This commit is contained in:
@@ -30,6 +30,10 @@ def create_c_from_template(settings: Settings, payload_len: int):
|
||||
|
||||
logger.info("-[ Carrier create Template: {}".format(
|
||||
settings.main_c_path))
|
||||
|
||||
# check that source directory exists
|
||||
if not os.path.exists(src):
|
||||
raise FileNotFoundError("Source directory does not exist: {}".format(src))
|
||||
|
||||
# copy *.c *.h files from src directory to dst directory
|
||||
for file in os.listdir(src):
|
||||
|
||||
Reference in New Issue
Block a user