Mercurial Hosting > traffic-intelligence
diff scripts/create-metadata.py @ 998:933670761a57
updated code to python 3 (tests pass and scripts run, but non-executed parts of code are probably still not correct)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Sun, 27 May 2018 23:22:48 -0400 |
parents | 9897a13772fb |
children | cc5cb04b04b0 |
line wrap: on
line diff
--- a/scripts/create-metadata.py Fri May 25 18:15:18 2018 -0400 +++ b/scripts/create-metadata.py Sun May 27 23:22:48 2018 -0400 @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import argparse from datetime import datetime @@ -7,7 +7,6 @@ timeConverter = utils.TimeConverter() parser = argparse.ArgumentParser(description='The program add camera views (metadata.CameraView) for a site or video sequences (metadata.VideoSequence) for a site and a view.') -#parser.add_argument('-d', dest = 'siteDirectory', help = 'name of the directory for the site')#, required = True parser.add_argument('-i', dest = 'databaseFilename', help = 'name of the metadata filename', required = True) parser.add_argument('-d', dest = 'dirname', help = 'directory name containing sites or video sequences for a given view') #parser.add_argument('-s', dest = 'siteId', help = 'site id (if provided, the program adds video sequences for the camera view)')