2

I want to get an image source code from a deferent path.

In my project .KV located at:

LearnProject/lib/screens/home.kv

And image file located at:

LearnProject/assets/images/logo.png

How can I get logo.png from home.kv?

  • 1
    You can try to create a "main.py" in LearnProject folder. which means you must always start your app from "main.py", then in your KV file you just simply write "assets/images/logo.png". The app will auto-detect every file in the folder where your "main.py" is located. There's another way by using "os and sys modules" but I'm not good at it. – Ten Kho Aug 31 '22 at 05:23

0 Answers0