Skip to content

Commit d0a892f

Browse files
committed
das haltestellenfile wird jetzt besser gefunden und enthält auch talbot
1 parent 66ed7d5 commit d0a892f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

haltestellen.pickle

18 Bytes
Binary file not shown.

main

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import http.client
44
import datetime
55
import sys
66
import pickle
7+
import os
78

89
def tstodate(ts):
910
return datetime.datetime.fromtimestamp(ts*(10**(-3))).strftime('%Y-%m-%d %H:%M:%S')
1011

1112
def tstotime(ts):
1213
return datetime.datetime.fromtimestamp(ts*(10**(-3))).strftime('%H:%M:%S')
1314

14-
haltestellenfile= open("haltestellen.pickle",'rb')
15+
haltestellenfile= open(os.path.dirname(os.path.realpath(__file__)) + "/haltestellen.pickle",'rb')
1516
baseurl = "ivu.aseag.de"
1617
baseurl_stream = "/interfaces/ura/stream_V1"
1718
baseurl_instant = "/interfaces/ura/instant_V1"

0 commit comments

Comments
 (0)