From 7c378b79497517ccddbc996aa9ed14cf1b08aa28 Mon Sep 17 00:00:00 2001 From: st33v Date: Sat, 21 Mar 2020 09:30:34 +1100 Subject: fix path to data file --- getPlanes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/getPlanes.py b/getPlanes.py index 54a8939..3ecef64 100755 --- a/getPlanes.py +++ b/getPlanes.py @@ -15,6 +15,7 @@ import datetime as dt # epoch = dt.datetime.utcfromtimestamp(0) #def unixSecs(myTime): # return (myTime - epoch).total_seconds() +csvPath = '/home/st33v/dev/service/covid-flights/' def isNum(item): """ @@ -55,7 +56,7 @@ planeDict = makeListofDicts(planes) planeFrame = pd.DataFrame.from_dict(planeDict) planeFrame['timeStamp'] = "{:%Y%m%dT%H%M}".format(dt.datetime.now()) -with open('covidPlanes.csv', 'a') as out: +with open(csvPath + 'covidPlanes.csv', 'a') as out: planeFrame.to_csv(out, mode = 'a', index = False, header = out.tell()==0) # Brief info for Journald -- cgit v1.3