未验证 提交 5db18309 编写于 作者: F frostming

Mistakenly stripped the leading "C"

Fix #5
上级 881e12de
......@@ -79,7 +79,7 @@ class Installer:
paths = self.environment.get_paths()
install_script = importlib.import_module(
"pdm._editable_install"
).__file__.strip("co")
).__file__.rstrip("co")
install_args = [
self.environment.python_executable,
"-u",
......
......@@ -334,9 +334,7 @@ def get_python_version(executable: str) -> Tuple[Union[str, int], ...]:
def get_pep508_environment(executable: str) -> Dict[str, Any]:
script = importlib.import_module("pdm.pep508").__file__
if script.endswith("pyc"):
script = script[:-1]
script = importlib.import_module("pdm.pep508").__file__.rstrip("co")
args = [executable, script]
return json.loads(subprocess.check_output(args))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册