refactor: use VBA-Excel/VBA-Access as default output dirs by file type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -472,8 +472,9 @@ def main():
|
||||
if not vba_path.is_absolute():
|
||||
vba_path = script_dir / vba_path
|
||||
else:
|
||||
# 使用目标文件同目录下的 VBA 文件夹
|
||||
vba_path = target_path.parent / "VBA"
|
||||
# 根据文件类型使用不同的默认文件夹
|
||||
default_dir = "VBA-Access" if file_type == "access" else "VBA-Excel"
|
||||
vba_path = target_path.parent / default_dir
|
||||
|
||||
if not vba_path.exists():
|
||||
print(f"错误: VBA 代码目录不存在: {vba_path}")
|
||||
|
||||
Reference in New Issue
Block a user