add usage application log

pull/249/head
edgarriba 2015-11-17 13:59:19 +00:00
rodzic 8c102027c1
commit 03b4a341b8
1 zmienionych plików z 13 dodań i 3 usunięć

Wyświetl plik

@ -1,19 +1,29 @@
#!/usr/bin/python
import context
import sys
import system
import log
from datatypes import ODMApp
def usage():
log.ODM_WARNING('USAGE: %s dataset_path' % sys.argv[0])
log.ODM_ERROR('OpenDroneMap app finished - %s' % system.now())
sys.exit(0)
if __name__ == '__main__':
log.ODM_INFO('Initializing OpenDroneMap app - %s' % system.now())
if len(sys.argv) < 2:
usage()
else:
dataset_path = sys.argv[1]
# Initialize odm app
# internally configure all tasks
app = ODMApp(context.scripts_path)
app = ODMApp(dataset_path)
# set from where we want to start
# by default we will start from the beginnig