Changeset 13210
- Timestamp:
- 21 Aug 2015, 14:28:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/scripts.py
r13209 r13210 3 3 To make this work, you have to pip install psutil in your local virtualenv. 4 4 """ 5 import argparse 5 6 import gc 6 7 import grok … … 34 35 #: The name under which the exporter to use is registered. 35 36 EXPORTER_NAME = "students" 37 38 39 def handle_options(): 40 """Handle commandline options. 41 """ 42 parser = argparse.ArgumentParser( 43 description="Export WAeUP kofa data") 44 args = parser.parse_args() 45 return args 36 46 37 47 … … 163 173 """Main function. 164 174 """ 175 options = handle_options() 165 176 closables = init_dbs() 166 177 conn = closables[0].open()
Note: See TracChangeset for help on using the changeset viewer.