{"action":"created","issue":{"url":"https://api.github.com/repos/codebrainz/geanypy/issues/17","labels_url":"https://api.github.com/repos/codebrainz/geanypy/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/codebrainz/geanypy/issues/17/comments","events_url":"https://api.github.com/repos/codebrainz/geanypy/issues/17/events","html_url":"https://github.com/codebrainz/geanypy/issues/17","id":51565209,"number":17,"title":"Importerror with multi module plugin","user":{"login":"deusyss","id":5519444,"avatar_url":"https://avatars.githubusercontent.com/u/5519444?v=3","gravatar_id":"","url":"https://api.github.com/users/deusyss","html_url":"https://github.com/deusyss","followers_url":"https://api.github.com/users/deusyss/followers","following_url":"https://api.github.com/users/deusyss/following{/other_user}","gists_url":"https://api.github.com/users/deusyss/gists{/gist_id}","starred_url":"https://api.github.com/users/deusyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deusyss/subscriptions","organizations_url":"https://api.github.com/users/deusyss/orgs","repos_url":"https://api.github.com/users/deusyss/repos","events_url":"https://api.github.com/users/deusyss/events{/privacy}","received_events_url":"https://api.github.com/users/deusyss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-10T14:40:26Z","updated_at":"2015-02-21T01:02:58Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to create a plugin. I made a module for UI, one for database and one for funcionalities. All that modules are import in main module (with geany.plugin).\r\n\r\nIf i want to import correctly these module i have to import them into __init__ of class which inherit from geany.plugin.\r\n\r\nI attach my beginning plugin with the error (change the extension to zip).\r\n\r\nI'm working under Linux Mint , and my plugin is under .conf directory in my home.\r\n\r\n![gearcos](https://cloud.githubusercontent.com/assets/5519444/5377398/ed885998-8081-11e4-81b3-60ed402814d3.PNG)\r\n"},"comment":{"url":"https://api.github.com/repos/codebrainz/geanypy/issues/comments/75346777","html_url":"https://github.com/codebrainz/geanypy/issues/17#issuecomment-75346777","issue_url":"https://api.github.com/repos/codebrainz/geanypy/issues/17","id":75346777,"user":{"login":"codebrainz","id":181177,"avatar_url":"https://avatars.githubusercontent.com/u/181177?v=3","gravatar_id":"","url":"https://api.github.com/users/codebrainz","html_url":"https://github.com/codebrainz","followers_url":"https://api.github.com/users/codebrainz/followers","following_url":"https://api.github.com/users/codebrainz/following{/other_user}","gists_url":"https://api.github.com/users/codebrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/codebrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebrainz/subscriptions","organizations_url":"https://api.github.com/users/codebrainz/orgs","repos_url":"https://api.github.com/users/codebrainz/repos","events_url":"https://api.github.com/users/codebrainz/events{/privacy}","received_events_url":"https://api.github.com/users/codebrainz/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T01:02:58Z","updated_at":"2015-02-21T01:02:58Z","body":"FWIW, I think [this](https://github.com/codebrainz/geanypy/blob/master/src/geanypy-plugin.c#L126) is the only `sys.path` modifications, needed in order to be able to import the `geany` module. As @elextr mentioned, the loader \"manually\" imports plugins by file path, like [this](https://github.com/codebrainz/geanypy/blob/master/geany/loader.py#L104)."}}