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

Move data, config and logs to their own folders #43

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

smuu
Copy link

@smuu smuu commented Oct 25, 2021

For better overview and persistence overview I would propose tho save data, config and logs to their own folders.
Also, if using (docker) containers, this dividing make sense. You can split the configuration from the data you want to persistent.

Input and opinions welcome!

# announcement_coin = load_order('new_listing.json')
if os.path.isfile('new_listing.json'):
announcement_coin = load_order('new_listing.json')
# announcement_coin = load_order(settings.data_folder + '/new_listing.json')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this commented out block be removed altogether?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes

Copy link
Collaborator

@DominicFrei DominicFrei left a comment

Choose a reason for hiding this comment

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

+1 for structure.
I've also added a question and since there are folders not anyway, is the auth subfolder maybe obsolete since the auth.yml is part of the configuration anyway?

@@ -15,21 +18,21 @@
old_coins = ["CHESS","OTHERCRAP"]

# loads local configuration
config = load_config('config.yml')
config = load_config(settings.config_folder + '/config.yml')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it makes sense to use os.path.join() instead of the + operator.
I will look cleaner and there is no need for slashes at the beginning of the filename

@@ -0,0 +1,7 @@
def init():
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need the init() method here?
All these path variables are constant so simple declaring them should suffice? similar to the globals.py

@Linus045 Linus045 changed the base branch from master to develop January 3, 2022 19:57
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.

4 participants