diff --git a/src/rocker/ros_ws.py b/src/rocker/ros_ws.py index d9081bf..b8f469c 100644 --- a/src/rocker/ros_ws.py +++ b/src/rocker/ros_ws.py @@ -43,7 +43,7 @@ def get_docker_args(self, cli_args): """ workspace = cli_args[self.name] if RosWs.is_workspace_volume(workspace): - args = Volume.get_volume_args([[workspace + ":" + os.path.join(RosWs.get_home_dir(cli_args), self.name, 'src')]]) + args = Volume.get_volume_args([[os.path.expanduser(workspace) + ":" + os.path.join(RosWs.get_home_dir(cli_args), self.name, 'src')]]) return ' '.join(args) else: return ''