From b0ad7c259d7862da2277ecdeff6cbcec0c16ce4d Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 14 Apr 2020 19:34:12 +0200 Subject: [PATCH] Add README & LICENSE to data_files --- morss/morss.py | 2 +- setup.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 4894956..1e1117b 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -620,7 +620,7 @@ def cgi_file_handler(environ, start_response, app): if url == '': url = 'index.html' - paths = [os.path.join(sys.prefix, 'share/morss', url), + paths = [os.path.join(sys.prefix, 'share/morss/www', url), os.path.join(os.path.dirname(__file__), '../www', url)] for path in paths: diff --git a/setup.py b/setup.py index 157fed1..07ecbb1 100644 --- a/setup.py +++ b/setup.py @@ -15,8 +15,9 @@ setup( install_requires = ['lxml', 'bs4', 'python-dateutil', 'chardet', 'pymysql'], package_data = {package_name: ['feedify.ini', 'reader.html.template']}, data_files = [ - ('share/' + package_name, glob('www/*.*')), - ('share/' + package_name + '/cgi', []) + ('share/' + package_name, ['README.md', 'LICENSE']), + ('share/' + package_name + '/www', glob('www/*.*')), + ('share/' + package_name + '/www/cgi', []) ], entry_points = { 'console_scripts': [package_name + '=' + package_name + ':main']