Relative filepath for playstate save-file
parent
efd7fe7a3d
commit
0fadd81c68
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue