Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I have script that auto collect assets for LayeredImage. I write method on base glob(). This gets folders with images for one art and register LayeredImage in Renpy. This method working on Windows (PC) without problem. Assets founded and i can use. But in Android build this method not working. I test on device with root and in place find not have anything assets. I think okay try use as recomend on Android device - use os.environ but this also not working. How i must do finding assets in need folders?
init -9999 python:
from glob import glob
import os
def APT_INIT(paths, base="base"):
for path in paths:
a_Images = glob(os.path.join(path, "*\\"))
# After i filtering images.