node_manager_daemon_fkie: check for log dir
@@ -262,6 +262,7 @@ def rosclean():
to get log again.
'''
d = rospkg.get_log_dir()
+ if d and d != os.path.sep:
ps = SupervisedPopen(['rm -fr %s/*' % d], stdout=subprocess.PIPE, shell=True)
output_err = ps.stderr.read()
if output_err:
