diff --git a/setup_main_tex_file.py b/setup_main_tex_file.py index d423b0f..2062535 100755 --- a/setup_main_tex_file.py +++ b/setup_main_tex_file.py @@ -49,9 +49,9 @@ def escape_tex(value): def normalize_branch(args): if 'master' in args: - return path.dirname(args.master).replace('/', '') + return path.join('xelatex', path.dirname(args.master).replace('/', '')) elif 'directory' in args: - return args.directory.replace('/', '') + return path.join('xelatex', args.directory.replace('/', '')) else: raise Exception('No sufficient information to create branch') @@ -109,6 +109,8 @@ def git_integration(func): 'comment', tree, parents) + + return inner def main():