Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 41233b3942
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (31 sloc) 0.885 kb
#!/usr/bin/env python
import argparse
import automgtic
import logging
root_log = logging.getLogger()
logging.basicConfig()
root_log.setLevel(logging.DEBUG)
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='automgtic - Autouploader for GNU MediaGoblin')
parser.add_argument(
'directory',
type=str,
nargs='?',
)
parser.add_argument(
'--authorize',
const=True,
action='store_const',
help='Initiate the configuration.')
parser.add_argument(
'--run',
const=True,
action='store_const',
help='Run the autouploader')
args = parser.parse_args()
root_log.debug(args)
if args.authorize:
automgtic.authorize()
if args.run:
automgtic.run_autoupload(args.directory)
Jump to Line
Something went wrong with that request. Please try again.