-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
base: develop
Are you sure you want to change the base?
Move data, config and logs to their own folders #43
Conversation
# 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') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this 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') |
There was a problem hiding this comment.
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(): |
There was a problem hiding this comment.
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
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!