Giter Club home page Giter Club logo

Comments (4)

daltonmatos avatar daltonmatos commented on July 23, 2024

Wouldn't this lead to a possible confusing loading proccess? Did you suggested this thinking about multi-file plugins ?

from plugnplay.

hugosenari avatar hugosenari commented on July 23, 2024

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.

daltonmatos avatar daltonmatos commented on July 23, 2024

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.

hugosenari avatar hugosenari commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.