Line 15... |
Line 15... |
15 |
sys.stderr.write("Invalid number of arguments.\n") |
15 |
sys.stderr.write("Invalid number of arguments.\n") |
16 |
sys.stderr.write("Usage: %s CONFIG_FILE\n" % (sys.argv[0], )) |
16 |
sys.stderr.write("Usage: %s CONFIG_FILE\n" % (sys.argv[0], )) |
17 |
sys.exit(1) |
17 |
sys.exit(1) |
18 |
|
18 |
|
19 |
value = parser.parse_file(sys.argv[1]) |
19 |
value = parser.parse_file(sys.argv[1]) |
20 |
path = value['data_path'] |
20 |
path = value['data_upload'] |
21 |
stationName = value['origin'] |
21 |
stationName = value['origin'] |
22 |
|
22 |
|
23 |
def main(): |
23 |
def main(): |
24 |
|
24 |
|
25 |
while True: |
25 |
while True: |