Skip to content

Commit

Permalink
ensure cwd exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Apr 14, 2017
1 parent b4b1175 commit 6380e23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/roslaunch/src/roslaunch/nodeprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ def start(self):
cwd = get_ros_root()
else:
cwd = rospkg.get_ros_home()
if not os.path.exists(cwd):
try:
os.makedirs(cwd)
except OSError:
# exist_ok=True
pass

_logger.info("process[%s]: start w/ args [%s]", self.name, self.args)
_logger.info("process[%s]: cwd will be [%s]", self.name, cwd)
Expand Down

0 comments on commit 6380e23

Please sign in to comment.