Skip to content

Commit 1717f4f

Browse files
committed
Added default.ini to distribution
1 parent 888c43b commit 1717f4f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='stonkmaster',
10-
version='1.0.1',
10+
version='1.0.1.dev',
1111
author='Daniel Stoll',
1212
author_email='danielsimon.stoll2@gmail.com',
1313
description='Simple bot to monitor stocks, options and cryptos.',
@@ -24,8 +24,8 @@
2424
"Programming Language :: Python :: 3",
2525
"Programming Language :: Python :: 3 :: Only",
2626
"Programming Language :: Python :: 3.8",
27-
"Programming Language :: Python :: 3.9"
28-
"License :: OSI Approved :: Apache License 2.0",
27+
"Programming Language :: Python :: 3.9",
28+
"License :: OSI Approved :: Apache Software License",
2929
"Operating System :: OS Independent",
3030
],
3131

@@ -35,7 +35,7 @@
3535
packages=find_packages(exclude=['tests', 'tests.*']),
3636

3737
include_package_data=True,
38-
data_files=[("config", ["default.ini"])],
38+
data_files=[("stonkmaster", ["default.ini"])],
3939

4040
python_requires='>=3.8, <4',
4141
install_requires=[

stonkmaster/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
def get_config(args: list[str]) -> configparser.ConfigParser:
88
parser = argparse.ArgumentParser()
99
parser.add_argument("--config", help="Path of configuration file.",
10-
default=pkg_resources.resource_filename("stonkmaster", "config/default.ini"))
10+
default=pkg_resources.resource_filename(__name__, "default.ini"))
1111
args = parser.parse_args(args)
1212

1313
config = configparser.ConfigParser()

0 commit comments

Comments
 (0)