Skip to content

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

Open
MoisMoshev wants to merge 2 commits intoshotgunsoftware:masterfrom
bottleship:master
Open

Allow passing config path as argument, create setup.py#78
MoisMoshev wants to merge 2 commits intoshotgunsoftware:masterfrom
bottleship:master

Conversation

@MoisMoshev
Copy link
Copy Markdown

@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
Comment thread setup.py
@@ -0,0 +1,13 @@
from setuptools import setup, find_packages

setup(name='shotgunEvents',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Black would make changes.

Comment thread setup.py
@@ -0,0 +1,13 @@
from setuptools import setup, find_packages
Copy link
Copy Markdown

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