We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26bbca6 commit bca7cb7Copy full SHA for bca7cb7
1 file changed
src/renutil.rs
@@ -712,6 +712,16 @@ pub async fn install(
712
std::os::unix::fs::symlink(base_path.join("renpy"), base_path.join("rapt/renpy"))?;
713
}
714
715
+ println!("Patching import issue in android.py");
716
+ // it imports pygame_sdl2 but never uses it. it's not in sys.path by default, which makes it annoying to deal with
717
+ let interface_path = base_path.join("rapt/android.py");
718
+ let content = fs::read_to_string(&interface_path)?;
719
+ let lines: Vec<&str> = content
720
+ .split('\n')
721
+ .filter(|line| !line.contains("import pygame_sdl2"))
722
+ .collect();
723
+ fs::write(&interface_path, lines.join("\n"))?;
724
+
725
unsafe { env::set_var("RAPT_NO_TERMS", "1") };
726
727
let android_py = base_path.join("rapt/android.py");
0 commit comments