diff --git a/w.py b/w.py old mode 100644 new mode 100755 index 88694f3..566cec8 --- a/w.py +++ b/w.py @@ -35,9 +35,11 @@ else: s2s = sys.argv[1] +script_dir = os.path.dirname(__file__) +rel_path="wstations.json" +abs_file_path = os.path.join(script_dir, rel_path) - -with open('wstations.json') as data_file: +with open(abs_file_path) as data_file: data = json.load(data_file) diff --git a/wstations.json b/wstations.json old mode 100644 new mode 100755