7 CONFIG_PATH = os.path.expanduser(
'~/.ros/roscompile.yaml')
9 PKG_PATH = rospkg.RosPack().get_path(
'roscompile')
11 roscompile_functions = collections.OrderedDict()
15 roscompile_functions[f.__name__] = f
20 fn = os.path.join(PKG_PATH,
'data', basename +
'.ignore')
37 ignore_lines.append(pattern % variables)
42 existing_permissions = stat.S_IMODE(os.lstat(fn).st_mode)
43 os.chmod(fn, existing_permissions | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
49 if os.path.exists(CONFIG_PATH):
50 CONFIG = yaml.load(open(CONFIG_PATH))
def get_ignore_data(name, variables=None, add_newline=True)
def get_ignore_data_helper(basename, add_newline=True)