How to package your code to share with others #182
-
Hey, i want to share a small framework i wrote with my friend and i'm a bit confused about that.
With that setup when i do Also tried to use apps from these docs with the same outcome: Any examples of working apps or modules will be greatly appreciated! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should turn your module into a package by putting it in a subdirectory:
The key thing is that in a package, the main file is always called |
Beta Was this translation helpful? Give feedback.
You should turn your module into a package by putting it in a subdirectory:
The key thing is that in a package, the main file is always called
__init__.py
. Then if you want to share yourarea_controller
package you would share the directorypyscript/modules/area_controller
.