10 CONFIG_PATH = os.path.expanduser(
'~/.ros/roscompile.yaml')
12 PKG_PATH = rospkg.RosPack().get_path(
'roscompile')
14 roscompile_functions = collections.OrderedDict()
18 roscompile_functions[f.__name__] = f
23 fn = os.path.join(PKG_PATH,
'data', basename +
'.ignore')
40 ignore_lines.append(pattern % variables)
45 existing_permissions = stat.S_IMODE(os.lstat(fn).st_mode)
46 os.chmod(fn, existing_permissions | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
52 if os.path.exists(CONFIG_PATH):
53 CONFIG = yaml.safe_load(open(CONFIG_PATH))
61 s1 = re.sub(
'(.)([A-Z][a-z]+)',
r'\1_\2', name)
62 return re.sub(
'([a-z0-9])([A-Z])',
r'\1_\2', s1).lower()
66 return ''.join([x.title()
for x
in name.split(
'_')])
def get_ignore_data(name, variables=None, add_newline=True)
def convert_to_underscore_notation(name)
def convert_to_caps_notation(name)
def get_ignore_data_helper(basename, add_newline=True)