def gitlink_lib(args): os.chdir(codir) out = StringIO() main(args.split(' '), out) return out.getvalue().rstrip()
from gitlink.main import main if __name__ == '__main__': main()