makedirs instead of mkdir, since /opt/ros/latest needs an intermediate directory

This commit is contained in:
Morgan Quigley 2009-11-25 04:59:09 +00:00
parent 33b1546aa8
commit b53c65e479
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ ros_uri = ros_uri.replace('$STACK_NAME', 'ros')
ros_root = os.path.join(workspace, 'ros')
stacks_root = os.path.join(workspace, 'stacks')
try:
os.mkdir(workspace, 0755)
os.makedirs(workspace, 0755)
except:
raise Exception("could not create workspace directory. ahhhhhhhhhh")
subprocess.check_call(['/usr/bin/svn', 'co', ros_uri, ros_root])