From 0fadd81c68dbb397a08473f03f9d851eda36bd5d Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Mon, 26 Mar 2018 23:59:10 +0200 Subject: [PATCH] Relative filepath for playstate save-file --- config/.scripts/spotify-play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.scripts/spotify-play.py b/config/.scripts/spotify-play.py index 834eec8..92913bd 100755 --- a/config/.scripts/spotify-play.py +++ b/config/.scripts/spotify-play.py @@ -26,7 +26,7 @@ def spotify_running(): def main(): state = -1 while spotify_running(): - with open('/home/tuan/.scripts/playstate', 'r') as f: + with open('~/.scripts/playstate', 'r') as f: try: file_state = int(f.readline().strip('\n')) except ValueError: