Closed Sonarjit closed 11 months ago
I think 'auto-py-to-exe' requires a special way to be able to load assets. In any case, sounds like a 'auto-py-to-exe' issue, not an ursina one. Is there a way to get the error from when it fails to load the texture?
A simple usrina program to show cube entity and some image. While running the app from the terminal, the cube entity along with the images are show perfectly. Here is the image while running from terminal
Then I created a .exe file using 'auto-py-to-exe' for the same application. While running the exe file, only the cube entity is show and the images are disappeared from the screen. Here is the image while running the exe file
Program Code
Here you can see the files and directory of the working environment
Folder included in compiling the program
My_python_package\Lib\site-packages\direct
My_python_package\Lib\site-packages\panda3d
My_python_package\Lib\site-packages\panda3d-1.10.13.post1.dist-info
My_python_package\Lib\site-packages\ursina
My_python_package\Lib\site-packages\ursina
Root_folder\assets
[NOTE: My_python_package is the directory where python is installed in my system. And Root_folder is the root directory where the assets package is present]
Expectation Expect to show the images in the application when it is run from exe file as the images are show when it is run from the terminal.
Thanks