Browse Source

patatools Python3.5 compat

See 932e39e6a8
pull/211/head
Oliverpool 9 years ago
parent
commit
ad9d7caafd
  1. 6
      patacrep/tools/__main__.py

6
patacrep/tools/__main__.py

@ -104,11 +104,13 @@ def commandline_parser():
return parser return parser
def main(args): def main(args=None):
"""Main function""" """Main function"""
if args is None:
args = sys.argv
parser = commandline_parser() parser = commandline_parser()
args = parser.parse_args(args[1:]) args = parser.parse_args(args[1:])
args.function(["patatools-{}".format(args.subcommand)] + args.remainder) args.function(["patatools-{}".format(args.subcommand)] + args.remainder)
if __name__ == "__main__": if __name__ == "__main__":
main(sys.argv) main()

Loading…
Cancel
Save