Skip to content

Commit

Permalink
add example of how to disable dev warnings in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchin committed Dec 6, 2024
1 parent 30a26df commit ece4c2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gplately/utils/dev_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ def print_dev_warning(version: str):
from https://github.com/michaelchin/plate-model-manager.
To disable this warning, set USING_DEV_VERSION to False in __init__.py or
set DISABLE_GPLATELY_DEV_WARNING environment variable to true.
set DISABLE_GPLATELY_DEV_WARNING environment variable to true, such as
`export DISABLE_GPLATELY_DEV_WARNING=true`
`os.environ["DISABLE_GPLATELY_DEV_WARNING"] = "true"`(in Python)
or
`export DISABLE_GPLATELY_DEV_WARNING=true`(in Shell)
If you prefer not seeing this warning always, you may set the environment variable
in your boot scripts, such as .bashrc, .profile, autoexec.bat, etc.
Expand Down

0 comments on commit ece4c2d

Please sign in to comment.