- if not root_path and hasattr(universe, "startdir"):
- root_path = universe.startdir
+ if hasattr(universe, "startdir"):
+ if not root_path:
+ root_path = universe.startdir
+ elif not os.path.isabs(root_path):
+ root_path = os.path.join(universe.startdir, root_path)