Fix path issue in Windows
from __future__ import absolute_import
import sys
+import os
# Ensure we don't have the wandb directory in the path to avoid importing our tensorboard
# module. This should only happen when wandb is installed with pip -e or pip install ...#egg=wandb
for path in sys.path:
- if path.endswith("/client/wandb"):
+ if path.endswith(os.path.join("client", "wandb")):
sys.path.remove(path)
- if path.endswith("/site-packages/wandb"):
+ if path.endswith(os.path.join("site-packages", "wandb")):
sys.path.remove(path)
if sys.modules.get("tensorboard"):
del sys.modules["tensorboard"]
