Skip to content

Commit

Permalink
package static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
frjcomp committed Mar 5, 2024
1 parent 983984f commit e64e8ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion conkeyscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import readchar
import json
import os
import pkg_resources

from clize import run
from loguru import logger
Expand Down Expand Up @@ -132,7 +133,7 @@ def main(
url: "u",
username: "usr",
password: "pwd",
dict_path: "d" = os.path.join(os.path.dirname(__file__), "dict.txt"),
dict_path: "d" = pkg_resources.resource_filename("conkeyscan", "static/dict.txt"),
disable_ssl_checks: "k" = True,
rate_limit: "r" = 100,
proxy: "p" = "",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"PySocks>=1",
],
entry_points={"console_scripts": ["conkeyscan = conkeyscan:entry_point"]},
package_data={"texts": ["dict.txt"]},
package_data={"": ["static/*"]},
include_package_data=True,
)
File renamed without changes.

0 comments on commit e64e8ce

Please sign in to comment.