Commit ba60ed88 by Arun Babu Neelicattu

executor: use pathlib instead of os.path

parent a3348f28
......@@ -532,9 +532,9 @@ class Executor(object):
self._write(operation, message)
if package.root_dir:
req = os.path.join(str(package.root_dir), package.source_url)
req = package.root_dir / package.source_url
else:
req = os.path.realpath(package.source_url)
req = Path(package.source_url).resolve(strict=False)
pyproject = PyProjectTOML(os.path.join(req, "pyproject.toml"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment