mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
windows compatibility
This commit is contained in:
7
setup.py
7
setup.py
@@ -10,8 +10,10 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
if not os.path.exists("Music"):
|
if not os.path.exists("Music"):
|
||||||
os.makedirs("Music")
|
os.makedirs("Music")
|
||||||
|
if not os.name == 'nt':
|
||||||
os.system('sudo chmod 777 Music')
|
os.system('sudo chmod 777 Music')
|
||||||
open('Music/list.txt', 'a').close()
|
open('Music/list.txt', 'a').close()
|
||||||
|
if not os.name == 'nt':
|
||||||
os.system('sudo chmod 777 Music/list.txt')
|
os.system('sudo chmod 777 Music/list.txt')
|
||||||
|
|
||||||
setup(name='spotdl',
|
setup(name='spotdl',
|
||||||
@@ -25,3 +27,8 @@ setup(name='spotdl',
|
|||||||
keywords = ['download', 'songs', 'spotify', 'playlists', 'music'],
|
keywords = ['download', 'songs', 'spotify', 'playlists', 'music'],
|
||||||
classifiers = [],
|
classifiers = [],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if os.name == 'nt':
|
||||||
|
os.system('copy bin\spotdl Scripts\spotdl.py')
|
||||||
|
print ''
|
||||||
|
print 'To run the script use: `python.exe Scripts/spotdl.py` in your root python installation folder'
|
||||||
|
|||||||
Reference in New Issue
Block a user