aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ipm/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipm/api.py b/src/ipm/api.py
index 30f7040..3f2f847 100644
--- a/src/ipm/api.py
+++ b/src/ipm/api.py
@@ -26,7 +26,7 @@ def install(uri: str, index: str = "", echo: bool = False) -> None:
info("正在初始化 IPM 环境...", echo)
HOME.mkdir(parents=True, exist_ok=True)
- index = index if index else INDEX
+ index = index or INDEX
if os.path.isabs(uri):
info(f"检定给定的 URI 地址[{uri}]为本地路径.", echo)