Add setup.py && bugfix
This commit is contained in:
parent
a934589c4f
commit
a3635c3eb0
|
@ -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"]
|
||||||
|
}
|
||||||
|
)
|
|
@ -58,7 +58,7 @@ class Interface:
|
||||||
:rtype: SpotifyLink
|
:rtype: SpotifyLink
|
||||||
"""
|
"""
|
||||||
args = argv[2:]
|
args = argv[2:]
|
||||||
if args != 1:
|
if len(args) != 1:
|
||||||
raise ValueError("Bad usage")
|
raise ValueError("Bad usage")
|
||||||
return SpotifyLink(args[0])
|
return SpotifyLink(args[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue