def make_tarball(tarball_fname,directory,cwd=None):
if tarball_fname.endswith('<STR_LIT>'): opts = '<STR_LIT>'<EOL>else: opts = '<STR_LIT>'<EOL>args = ['<STR_LIT>',opts,tarball_fname,directory]<EOL>process_command(args, cwd=cwd)<EOL>
create a tarball from a directory