mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 10:09:11 -06:00
fixed location of where tracks where saved (sys.path error), image should now be built upon correct, most recent data
This commit is contained in:
@@ -24,7 +24,7 @@ def main():
|
||||
sp = spotipy.Spotify(auth=token)
|
||||
logging.info('Authorized with Spotify via Spotipy')
|
||||
|
||||
tracks_folder = os.path.join(sys.path[0], 'tracks')
|
||||
tracks_folder = os.path.join(os.path.dirname(__file__), 'tracks')
|
||||
logging.warning('Clearing all files in tracks folder for new files')
|
||||
if os.path.exists(tracks_folder):
|
||||
shutil.rmtree(tracks_folder) # Delete folder and all contents (old track files)
|
||||
|
||||
Reference in New Issue
Block a user