mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
set-up list.txt with proper permissions
This commit is contained in:
7
setup.py
7
setup.py
@@ -4,10 +4,15 @@ import sys
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
if sys.version_info > (3,0):
|
if sys.version_info > (3,0):
|
||||||
sys.exit("spotdl requires python 2.")
|
sys.exit("spotdl requires python 2.")
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
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',
|
setup(name='spotdl',
|
||||||
version='0.1',
|
version='0.1',
|
||||||
description='Downloads Songs and Spotify playlists (even for free accounts)',
|
description='Downloads Songs and Spotify playlists (even for free accounts)',
|
||||||
|
|||||||
Reference in New Issue
Block a user