Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/python-packages/tox-monorepo/tox_monorepo/monorepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ def update_env(old_path, new_path, environment_config):
environment_config.envtmpdir = py.path.local(
environment_config.envtmpdir.strpath.replace(old_path, new_path)
)
environment_config.envlogdir = py.path.local(
environment_config.envlogdir.strpath.replace(old_path, new_path)
)


# update the cachedir
environment_config.setenv["TOX_ENV_DIR"] = environment_config.setenv[
"TOX_ENV_DIR"
].replace(old_path, new_path)


@hookimpl
def tox_configure(config):
invocationcwd = config.invocationcwd.strpath
Expand Down Expand Up @@ -79,5 +82,10 @@ def tox_configure(config):
config.sdistsrc.strpath.replace(original_toxinipath, invocationcwd)
)

if config.logdir:
config.logdir = py.path.local(
config.logdir.strpath.replace(original_toxinipath, invocationcwd)
)

for environment_name, environment_config in config.envconfigs.items():
update_env(original_toxinipath, invocationcwd, environment_config)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

VERSION = "0.1.1"
VERSION = "0.1.2"