-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Allow to use --devenv without tox config #1644
Conversation
@@ -1056,7 +1061,7 @@ class ParseIni(object): | |||
def __init__(self, config, ini_path, ini_data): # noqa | |||
config.toxinipath = ini_path | |||
using("tox.ini: {} (pid {})".format(config.toxinipath, os.getpid())) | |||
config.toxinidir = config.toxinipath.dirpath() | |||
config.toxinidir = config.toxinipath.dirpath() if ini_path.check(file=True) else ini_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.
Note that this feels a bit like a hack. I've tried to pass None
and adapt the code to not do certain things if this is None
, but it was too messy.
bd6bf8c
to
23ea4fd
Compare
I'll defer review and merge on this to my co-maintainer @asottile as he's the champion of this feature. But at a high level, I'm happy with what I see here. |
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.
Fixes #1643
Contribution checklist:
(also see CONTRIBUTING.rst for details)
CONTRIBUTORS
(preserving alphabetical order)