We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6840303 commit 2ef3b7bCopy full SHA for 2ef3b7b
vmas/scenarios/__init__.py
@@ -12,7 +12,7 @@ def load(name: str):
12
for dirpath, _, filenames in os.walk(osp.dirname(__file__)):
13
if pathname is None:
14
for filename in filenames:
15
- if name == filename or name == str(Path(dirpath) / Path(filename)):
+ if name == filename or Path(name) == Path(dirpath) / Path(filename):
16
pathname = os.path.join(dirpath, filename)
17
break
18
assert pathname is not None, f"{name} scenario not found."
0 commit comments