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

Use a class and decorators for configuration #93

Open
toonarmycaptain opened this issue Dec 28, 2018 · 1 comment
Open

Use a class and decorators for configuration #93

toonarmycaptain opened this issue Dec 28, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@toonarmycaptain
Copy link
Owner

toonarmycaptain commented Dec 28, 2018

Might a better method for handling configuration and path data be to implement a class with @Property attributes and @x.setter functions for those that may change dynamically (eg user default save paths).

https://pabloariasal.github.io/2018/11/25/python-descriptors/
https://www.hackerearth.com/practice/notes/samarthbhargav/a-design-pattern-for-configuration-management-in-python/

@toonarmycaptain toonarmycaptain added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Dec 28, 2018
@toonarmycaptain
Copy link
Owner Author

GitMate.io thinks possibly related issues are #14 (Settle on class data format), #92 (Decouple class functions from UI), #86 (Use DataFolder for all data paths.), #15 (Edit class dialogue and logic), and #10 (Use pathlib for filepaths).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant