python library files at runtime #10
-
hi. thanks a lot for sharing this library! in which folder should i put the library in the build version in order for the executable to i referenced the python libraries as followed in the C# script.
The folder structure of the build is as follow: Managed [FileFolder] Thanks. Matthias |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you don't want to change your code at all, you need to copy the I would like to point out that any folder named There are also a few other ways you can solve your problem. For example, if you wish to avoid having to manually copy the data, you can use the As always, if you are going to include the Python library in your the build, you have to be very careful about security. The library has no protection and anyone could modify any of the library scripts to do whatever they want. This is the main reason for why the included python library in |
Beta Was this translation helpful? Give feedback.
-
Closing due to inactivity. |
Beta Was this translation helpful? Give feedback.
If you don't want to change your code at all, you need to copy the
Resources
folder to where the data path is at runtime. You can read more about that here.I would like to point out that any folder named
Resources
will be copied to your executable when you build. This means if you follow my advice, the Python libraries will now be in your executable twice. I recommend reading more about theResources
folder and how it should be used here.There are also a few other ways you can solve your problem. For example, if you wish to avoid having to manually copy the data, you can use the
StreamingAssets
folder. Everything inside this special folder will be copied over to your build.As always, i…