port to rospkg
This commit is contained in:
parent
4e5722482e
commit
97355b3173
|
@ -46,6 +46,8 @@ import signal
|
|||
import subprocess
|
||||
import traceback
|
||||
|
||||
import rospkg
|
||||
|
||||
import roslib.packages
|
||||
|
||||
from .core import xml_results_file, rostest_name_from_path, create_xml_runner, printlog, printerrlog, printlog_bold
|
||||
|
@ -235,7 +237,7 @@ class LocalProcess(pmon.Process):
|
|||
name. Values are None if stdout/stderr are not logged.
|
||||
@rtype: str, str
|
||||
"""
|
||||
log_dir = roslib.rosenv.get_log_dir(env=os.environ)
|
||||
log_dir = rospkg.get_log_dir(env=os.environ)
|
||||
if self.run_id:
|
||||
log_dir = os.path.join(log_dir, self.run_id)
|
||||
if not os.path.exists(log_dir):
|
||||
|
@ -310,7 +312,7 @@ class LocalProcess(pmon.Process):
|
|||
elif self.cwd == 'ros-root':
|
||||
cwd = get_ros_root()
|
||||
else:
|
||||
cwd = roslib.rosenv.get_ros_home()
|
||||
cwd = rospkg.get_ros_home()
|
||||
|
||||
_logger.info("process[%s]: start w/ args [%s]", self.name, self.args)
|
||||
_logger.info("process[%s]: cwd will be [%s]", self.name, cwd)
|
||||
|
|
Loading…
Reference in New Issue