Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing config path as argument, create setup.py #78

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MoisMoshev
Copy link

@MoisMoshev MoisMoshev commented Mar 1, 2021

This change allows passing the config path into the daemon constructor, instead of obtaining it inside. It can also be passed as a command-line argument.
This permits more freedom in composing the config. Also, our own package can depend on it, by having a setup.py and being able to install it.

The function _getConfigPath is too magical, for custom setups it is
easiest and most explicit to allow passing the config path as an argument.

Add a setup.py to turn directory into package
@@ -0,0 +1,13 @@
from setuptools import setup, find_packages

setup(name='shotgunEvents',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Black would make changes.

@@ -0,0 +1,13 @@
from setuptools import setup, find_packages
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'setuptools.find_packages' imported but unused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant