pref: add debug printer

This commit is contained in:
hayden
2024-11-13 09:57:59 +08:00
parent 4038e240f0
commit 6ae7e1835f

View File

@@ -25,6 +25,10 @@ def print_error(msg, *args, **kwargs):
logging.debug(traceback.format_exc())
def print_debug(msg, *args, **kwargs):
logging.debug(f"[{config.extension_tag}] {msg}", *args, **kwargs)
def normalize_path(path: str):
normpath = os.path.normpath(path)
return normpath.replace(os.path.sep, "/")