From ca732255847728d75bbdace58396304ea32630a7 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Thu, 29 Sep 2016 11:39:51 +0530 Subject: [PATCH] set-up list.txt with proper permissions --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 54994f2..3966955 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,15 @@ import sys import os if sys.version_info > (3,0): - sys.exit("spotdl requires python 2.") + sys.exit("spotdl requires python 2.") from setuptools import setup, find_packages +if not os.path.exists("Music"): + os.makedirs("Music") +open('Music/list.txt', 'a').close() +os.system('sudo chmod 777 Music/list.txt') + setup(name='spotdl', version='0.1', description='Downloads Songs and Spotify playlists (even for free accounts)',