mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix build failure in fresh checkout
This commit is contained in:
parent
850e564a99
commit
f6fdf64c5d
1 changed files with 2 additions and 0 deletions
|
@ -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)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue