mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-07 00:58:14 +00:00
make module executable (#34)
This commit is contained in:
12
rfd/__main__.py
Normal file
12
rfd/__main__.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
"""The main entry point. Invoke as `rfd' or `python -m rfd'.
|
||||||
|
"""
|
||||||
|
from .cli import cli
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
cli()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
@@ -1,4 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
|
@@ -160,7 +160,3 @@ def search(num_pages, forum_id, keyword):
|
|||||||
)
|
)
|
||||||
click.echo(Fore.BLUE + " {}".format(thread.url))
|
click.echo(Fore.BLUE + " {}".format(thread.url))
|
||||||
click.echo(Style.RESET_ALL)
|
click.echo(Style.RESET_ALL)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
cli()
|
|
||||||
|
2
setup.py
2
setup.py
@@ -23,7 +23,7 @@ with io.open(path.join(WORKING_DIR, "README.md"), encoding="utf-8") as f:
|
|||||||
setup(
|
setup(
|
||||||
author="Dave Gallant",
|
author="Dave Gallant",
|
||||||
description="CLI for RedFlagDeals.com",
|
description="CLI for RedFlagDeals.com",
|
||||||
entry_points={"console_scripts": ["rfd = rfd.cli:cli"]},
|
entry_points={"console_scripts": ["rfd = rfd.__main__:cli"]},
|
||||||
install_requires=REQUIREMENTS,
|
install_requires=REQUIREMENTS,
|
||||||
keywords="cli redflagdeals",
|
keywords="cli redflagdeals",
|
||||||
license="Apache License, Version 2.0",
|
license="Apache License, Version 2.0",
|
||||||
|
Reference in New Issue
Block a user