mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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::io::Write;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
|
use anki_io::create_dir_all;
|
||||||
use anki_io::create_file;
|
use anki_io::create_file;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use inflections::Inflect;
|
use inflections::Inflect;
|
||||||
|
@ -17,6 +18,7 @@ use prost_reflect::ServiceDescriptor;
|
||||||
|
|
||||||
pub(crate) fn write_python_interface(pool: &DescriptorPool) -> Result<()> {
|
pub(crate) fn write_python_interface(pool: &DescriptorPool) -> Result<()> {
|
||||||
let output_path = Path::new("../../out/pylib/anki/_backend_generated.py");
|
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)?);
|
let mut out = BufWriter::new(create_file(output_path)?);
|
||||||
write_header(&mut out)?;
|
write_header(&mut out)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue