Skip to content

Commit 04d36f3

Browse files
committed
[FIX] do not keep empty addons path in cli mode
1 parent b7515ee commit 04d36f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/cli_backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl CliBackend {
5353
}
5454

5555
let mut config = ConfigEntry::new();
56-
config.addons_paths = addons_paths.into_iter().map(|p| fs::canonicalize(p).unwrap_or_else(|_| PathBuf::from(S!(""))).sanitize()).collect();
56+
config.addons_paths = addons_paths.into_iter().map(|p| fs::canonicalize(p).unwrap_or_else(|_| PathBuf::from(S!(""))).sanitize()).filter(|x| !x.is_empty()).collect();
5757
config.odoo_path = Some(fs::canonicalize(community_path.unwrap_or(S!(""))).unwrap_or_else(|_| PathBuf::from(S!(""))).sanitize());
5858
config.diag_missing_imports = DiagMissingImportsMode::All;
5959
config.no_typeshed_stubs = self.cli.no_typeshed_stubs;

0 commit comments

Comments
 (0)