1
0
Fork 0

Add setup.py && bugfix

This commit is contained in:
trueold89 2024-03-21 07:47:02 +03:00
parent a934589c4f
commit a3635c3eb0
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
2 changed files with 15 additions and 1 deletions

14
setup.py Normal file
View File

@ -0,0 +1,14 @@
from setuptools import setup
setup(
name='SpotifyLinuxOpen',
version='0.1',
url='https://git.orudo.ru/trueold89/SpotifyLinuxOpen',
author='trueold89',
author_email='trueold89@orudo.ru',
description="A simple cli-utility that allows you to open 'open.spotify.com' in the Spotify desktop client on Linux",
packages=['sllo'],
entry_points={
"console_scripts": ["slopen = sllo.Main:main"]
}
)

View File

@ -58,7 +58,7 @@ class Interface:
:rtype: SpotifyLink
"""
args = argv[2:]
if args != 1:
if len(args) != 1:
raise ValueError("Bad usage")
return SpotifyLink(args[0])