mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added debug argument to global sys argv handling
This commit is contained in:
parent
9ff8f3011b
commit
d71baa8390
1 changed files with 5 additions and 0 deletions
5
start.py
5
start.py
|
|
@ -230,6 +230,11 @@ if "--verbose" in sys.argv:
|
|||
|
||||
os.environ["OPENPYPE_LOG_LEVEL"] = str(log_level)
|
||||
|
||||
# Enable debug mode, may affect log level if log level is not defined
|
||||
if "--debug" in sys.argv:
|
||||
sys.argv.remove("--debug")
|
||||
os.environ["OPENPYPE_DEBUG"] = "1"
|
||||
|
||||
|
||||
import igniter # noqa: E402
|
||||
from igniter import BootstrapRepos # noqa: E402
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue