Comments (4)
Wouldn't this lead to a possible confusing loading proccess? Did you suggested this thinking about multi-file plugins ?
from plugnplay.
Here is my example
https://github.com/hugosenari/pig
pig / pig
pig / pig / core
pig / pig / modules
pig / pig / modules / maemo
Default version just add 'modules' and don't load plugins from 'maemo'.
With this I can organize modules by target, with this users can create his 'meego' or 'android' submodules
from plugnplay.
So you are saying that someone could create more folders like this?
pig/pig/modules/maemo
pig/pig/modules/android
pig/pig/modules/meego
If I understand correctly, loading all plugins from all three folders, for example adding pig/pig/modules
with set_plugin_dirs()
, would load the android implementation even when running on maemo/meego.
If this is correct, wouldn't this cause errors because some dependencies of one platform does not exist in the other?
from plugnplay.
Hi :)
This is more like pc client for cellphones, than phone app. One thing that I need to do, are split in two projects (or more), one for 'runner' and other for any else.
Remember my idea of a program that can launch python scripts, only to run in background for auxiliar porpouses?
Pig is this program. The idea is put anything that user want in /modules (implementing some of core interfaces). Future version can load /modules from userspace.
modules/maemo is one of scripts, current version read N900 dbus and notify new messages and calls in PC. Future version: new emails, and implement telepathy dbus client (chat, answer call request, etc), control media player, connections...
To control all, these are my alternativies:
1 - Create one big file /pig/pig/modules/maemo.py
2 - Create one litle file (/pig/pig/modules/maemo.py) that load dir (/pig/pig/modules/maemo_modules)
3 - Implement my own recursive version of set_plugin_dirs
4 - Create various files in /pig/pig/modules/maemo_[feature_name].py
from plugnplay.
Related Issues (18)
- Implement external python files loading HOT 1
- Broken egg: README.rst missing HOT 2
- Add the ability to filter which implementors of an Interface will be returned HOT 8
- Choose the order which Interface implementors will be executed HOT 2
- __init__ of a direct plugnplay.Plugin descending is called upon loading
- My plugin can't import interface HOT 13
- Modules from dirs with same name HOT 6
- [Python 3.2] Unable to install 0.5.1 via pip or setup.py HOT 5
- Use logging.getLogger() of no logger is passed
- Incompatibility with py3k filter() function
- PnP does not run plugins that inherit a plugin without set implements again HOT 3
- Do not abort on loading error
- New way to call Interface implementors HOT 5
- Standardize Plugin Load/Execution order HOT 5
- plugnplay can't find implementors using different imports HOT 20
- modules from different dirs but with same file name HOT 8
- Do not import plugins that start with "__" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugnplay.