Relative filepath for playstate save-file

clean_emacs
Tuan-Dat Tran 2018-03-26 23:59:10 +02:00
parent efd7fe7a3d
commit 0fadd81c68
No known key found for this signature in database
GPG Key ID: 0DA1B0B23302CA72
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def spotify_running():
def main(): def main():
state = -1 state = -1
while spotify_running(): while spotify_running():
with open('/home/tuan/.scripts/playstate', 'r') as f: with open('~/.scripts/playstate', 'r') as f:
try: try:
file_state = int(f.readline().strip('\n')) file_state = int(f.readline().strip('\n'))
except ValueError: except ValueError: