{"action":"created","issue":{"url":"https://api.github.com/repos/RonnyPfannschmidt/execnet-test/issues/26","labels_url":"https://api.github.com/repos/RonnyPfannschmidt/execnet-test/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/RonnyPfannschmidt/execnet-test/issues/26/comments","events_url":"https://api.github.com/repos/RonnyPfannschmidt/execnet-test/issues/26/events","html_url":"https://github.com/RonnyPfannschmidt/execnet-test/issues/26","id":102633346,"number":26,"title":"execnet submodules not found when packed in a jar for use with Jython (patch included)","user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-23T15:50:29Z","updated_at":"2015-08-23T15:50:31Z","closed_at":"2015-08-23T15:50:29Z","body":"Hi,\n\nA little bit of context: I am working on an image processing software (icy.bioimageanalysis.org) written in Java. We've recently added a Jython scripting engine, and I have been trying to distribute execnet along with Jython so that users can easily write scripts that communicate with CPython and use Numpy, for example.\n\nThe problem I encounter is that I want to distribute the execnet inside a jar file. Normally it's just a matter of putting the python files in the jar, but for execnet the module cannot be used from the resulting jar. As soon as an execnet command is called, it fails with: \"ImportError: No module name *\" where * is the name of one of the sub-module of execnet (\"multi\" for example).\n\nIt turns out that the problem lies in apipkg.py. I have filed an issue and submitted a patch for apipkg.py here:\nhttps://bitbucket.org/hpk42/apipkg/issue/3/modules-not-founds-when-packed-in-a-jar\n\n(The problem comes from the assumption that python modules are plain files with a true path. Instead, when run by Jython from a jar, the module is located in a virtual place called \"__pyclasspath__\". I have modified the use of os.path.abspath to avoid modifying paths that begins with __pyclasspath__ and now execnet works properly. A patch is attached to the issue).\n\nDo you think this could be included for a new release of execnet ? Thanks !\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/hpk42/execnet/issue/11\n- Originally reported by: [tlecomte](http://bitbucket.org/tlecomte)\n- Originally created at: 2013-03-05T11:03:45.727\n"},"comment":{"url":"https://api.github.com/repos/RonnyPfannschmidt/execnet-test/issues/comments/133868790","html_url":"https://github.com/RonnyPfannschmidt/execnet-test/issues/26#issuecomment-133868790","issue_url":"https://api.github.com/repos/RonnyPfannschmidt/execnet-test/issues/26","id":133868790,"user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T15:50:30Z","updated_at":"2015-08-23T15:50:30Z","body":"Original comment by: [tlecomte](http://bitbucket.org/tlecomte)\n\n"}}