Commit 53cdead1 authored by tianyu-z's avatar tianyu-z

fix bug of failing importing config

parent 6cef44e7
*.pyc
results
\ No newline at end of file
...@@ -13,6 +13,13 @@ import setproctitle ...@@ -13,6 +13,13 @@ import setproctitle
import numpy as np import numpy as np
from pathlib import Path from pathlib import Path
import torch import torch
# Get the parent directory of the current file
parent_dir = os.path.abspath(os.path.join(os.getcwd(), "."))
# Append the parent directory to sys.path, otherwise the following import will fail
sys.path.append(parent_dir)
from config import get_config from config import get_config
from envs.env_wrappers import DummyVecEnv from envs.env_wrappers import DummyVecEnv
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment