Added automatic folder creation
This commit is contained in:
parent
f779de6524
commit
dada4776f1
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import pprint
|
||||
import re
|
||||
import subprocess
|
||||
|
@ -290,7 +291,9 @@ def collect_sierra_data(filename):
|
|||
# Main function
|
||||
def main():
|
||||
global running
|
||||
filename = "data/boat_relay_sept_11/collection_" + str(int(time.time())) + ".json"
|
||||
foldername = 'data/boat_relay_sept_11'
|
||||
os.makedirs(foldername, exist_ok=True)
|
||||
filename = foldername + "/collection_" + str(int(time.time())) + ".json"
|
||||
|
||||
print("Setting configs...")
|
||||
set_configs()
|
||||
|
|
Loading…
Reference in New Issue
Block a user