mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-12 12:40:20 +08:00
moved env var to before import (#414)
This commit is contained in:
committed by
William Falcon
parent
e7c12d936e
commit
0db422777c
@@ -10,9 +10,9 @@ try:
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
try:
|
||||
from .comet_logger import CometLogger
|
||||
|
||||
# needed to prevent ImportError and duplicated logs.
|
||||
environ["COMET_DISABLE_AUTO_LOGGING"] = "1"
|
||||
|
||||
from .comet_logger import CometLogger
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
del environ["COMET_DISABLE_AUTO_LOGGING"]
|
||||
|
||||
Reference in New Issue
Block a user