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:
@@ -76,8 +76,10 @@ class VBAExtractor:
|
||||
elif VBA_OUTPUT_DIR is not None:
|
||||
self.output_dir = Path(VBA_OUTPUT_DIR)
|
||||
else:
|
||||
# 使用目标文件同目录下的VBA文件夹
|
||||
self.output_dir = self.source_path.parent / "VBA"
|
||||
# 根据文件类型使用不同的默认文件夹
|
||||
file_type = get_file_type(self.source_path)
|
||||
default_dir = "VBA-Access" if file_type == 'access' else "VBA-Excel"
|
||||
self.output_dir = self.source_path.parent / default_dir
|
||||
|
||||
# 创建输出目录结构
|
||||
self.modules_dir = self.output_dir / STANDARD_MODULE_DIR
|
||||
|
||||
Reference in New Issue
Block a user