Skip to content

Commit 624ccba

Browse files
committed
Fix dfki-ric#363 - 2
1 parent 1697c1f commit 624ccba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phobos/core/multiple.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def __init__(self, name=None, world=None, model=None, file=None, origin=None, fr
1919
assert world is not None
2020
self.model = _singular(model)
2121
self.origin = _singular(origin) if origin is not None else representation.Pose()
22-
self._file = os.path.normpath(os.path.join(os.path.dirname(world.inputfile), file)) if not os.path.isabs(file) else file
22+
self._file = os.path.normpath(os.path.join(os.path.dirname(world.inputfile), file)) \
23+
if file is not None and not os.path.isabs(file) else file
2324
if model is None and file is not None:
2425
if self._file.lower().rsplit(".", 1)[-1] in ["smurfs", "smurfa"]:
2526
try:

0 commit comments

Comments
 (0)