From f6fdf64c5d106d286a6914d78501040ecaaa6870 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 12 Jun 2023 17:10:22 +1000 Subject: [PATCH] Fix build failure in fresh checkout --- rslib/proto/python.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rslib/proto/python.rs b/rslib/proto/python.rs index 063306974..b735c1915 100644 --- a/rslib/proto/python.rs +++ b/rslib/proto/python.rs @@ -5,6 +5,7 @@ use std::io::BufWriter; use std::io::Write; use std::path::Path; +use anki_io::create_dir_all; use anki_io::create_file; use anyhow::Result; use inflections::Inflect; @@ -17,6 +18,7 @@ use prost_reflect::ServiceDescriptor; pub(crate) fn write_python_interface(pool: &DescriptorPool) -> Result<()> { let output_path = Path::new("../../out/pylib/anki/_backend_generated.py"); + create_dir_all(output_path.parent().unwrap())?; let mut out = BufWriter::new(create_file(output_path)?); write_header(&mut out)?;