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:
parent
fc61bdd907
commit
f180ab3e69
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue