-
Notifications
You must be signed in to change notification settings - Fork 992
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
flake8 contrib/ and lib/tool_shed/ . #708
Conversation
Also: - use sys.exit() instead of exit() - fix sys.path manipulations.
new_path = [ os.path.join( os.path.dirname( __file__ ), os.pardir, os.pardir, os.pardir, os.pardir, 'lib' ) ] | ||
new_path.extend( sys.path[ 1: ] ) | ||
sys.path = new_path | ||
sys.path.insert(1, os.path.join( os.path.dirname( __file__ ), os.pardir, os.pardir, os.pardir ) ) |
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 doesn't have to end with lib
?
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.
No, this file is already in a subdirectory of lib
, so I have removed os.pardir, 'lib'
.
👍 |
This breaks 2 tests for me (
|
seems the tests were failing randomly, 👍 |
flake8 contrib/ and lib/tool_shed/ .
xref: #391 |
Also:
sys.exit()
instead ofexit()
sys.path
manipulations.