Use os.path.abspath to get absolute path instead of Path.resolve()

Unfortunately it seems there is a difference in resolve() behavior depending
on the platform
This commit is contained in:
Bruno Oliveira 2018-11-20 20:08:01 -02:00
parent fc61bdd907
commit f180ab3e69
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ class TempPathFactory(object):
The base directory can be configured using the ``--basetemp`` option."""
_given_basetemp = attr.ib(
convert=attr.converters.optional(lambda p: Path(p).resolve())
# using os.path.abspath() to get absolute path instead of resolve() as it
# does not work the same in all platforms
convert=attr.converters.optional(lambda p: Path(os.path.abspath(p)))
)
_trace = attr.ib()
_basetemp = attr.ib(default=None)