兼容服务器运行环境
This commit is contained in:
parent
3f93a8ec76
commit
45e6de22c1
|
|
@ -22,7 +22,12 @@ try:
|
||||||
if _tools not in sys.path:
|
if _tools not in sys.path:
|
||||||
sys.path.insert(0, _tools)
|
sys.path.insert(0, _tools)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
try:
|
||||||
|
# 兼容服务器环境
|
||||||
|
sys.path.insert(0, "/workspace/ctm-dqn/.venv/lib/python3.12/site-packages/sumo/tools")
|
||||||
|
import sumo
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue