diff --git a/cm-cli.py b/cm-cli.py index 7cb3f3e..30a256b 100644 --- a/cm-cli.py +++ b/cm-cli.py @@ -483,7 +483,8 @@ elif op == 'cli-only-mode': pass print(f"\ncli-only-mode: enabled\n") elif sys.argv[2] == 'disable': - os.remove(cli_mode_flag) + if os.path.exists(cli_mode_flag): + os.remove(cli_mode_flag) print(f"\ncli-only-mode: disabled\n") else: print(f"\ninvalid value for cli-only-mode: {sys.argv[2]}\n") diff --git a/glob/manager_core.py b/glob/manager_core.py index f38733f..2aa189b 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -21,7 +21,7 @@ sys.path.append(glob_path) import cm_global from manager_util import * -version = [2, 22] +version = [2, 22, 1] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))