-
Notifications
You must be signed in to change notification settings - Fork 28
add config.py for static cfg vars like LIBRESSL_PATH #3
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
base: master
Are you sure you want to change the base?
Conversation
| if(system() == "Darwin"): | ||
| path = "/usr/local/opt/libressl/lib/libssl.dylib" | ||
| try: | ||
| config.LIBRESSL_PATH |
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.
python noob here but why not path = config.LIBRESSL_PATH and removing the else at the end ?
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 believe if config.LIBRESSL_PATH isn't set i.e. commented out in the config it will throw a NameError, that was my thinking
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.
but path = config.LIBRESSL_PATH should as well right?
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.
Oh, I see what you're saying. set the path in the try statement instead of in else madness
`
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.
You should include this change in your updated pull request.
leen-she
left a comment
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.
Sorry, just saw this. Like your idea, it should work for now. Will merge after you update your pull request and make sure it doesn't conflict with master.
| @@ -0,0 +1,3 @@ | |||
| LIBRESSL_PATH = "/usr/local/lib/libssl.so" | |||
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.
This should be commented out. The user should uncomment and change to the correct path if the default paths don't work. Will mention this in the README.
| if(system() == "Darwin"): | ||
| path = "/usr/local/opt/libressl/lib/libssl.dylib" | ||
| try: | ||
| config.LIBRESSL_PATH |
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.
You should include this change in your updated pull request.
Could also be used to set tumbler's address, etc