diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..07e15d7 --- /dev/null +++ b/setup.py @@ -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"] + } +) diff --git a/sllo/Classes.py b/sllo/Classes.py index 6e77d7a..dd9f545 100644 --- a/sllo/Classes.py +++ b/sllo/Classes.py @@ -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])