{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1271","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1271/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1271/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1271/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1271","id":76640448,"number":1271,"title":"lensfunpy not working, usage of __file__","user":{"login":"neothemachine","id":530988,"avatar_url":"https://avatars.githubusercontent.com/u/530988?v=3","gravatar_id":"","url":"https://api.github.com/users/neothemachine","html_url":"https://github.com/neothemachine","followers_url":"https://api.github.com/users/neothemachine/followers","following_url":"https://api.github.com/users/neothemachine/following{/other_user}","gists_url":"https://api.github.com/users/neothemachine/gists{/gist_id}","starred_url":"https://api.github.com/users/neothemachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neothemachine/subscriptions","organizations_url":"https://api.github.com/users/neothemachine/orgs","repos_url":"https://api.github.com/users/neothemachine/repos","events_url":"https://api.github.com/users/neothemachine/events{/privacy}","received_events_url":"https://api.github.com/users/neothemachine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/support","name":"support","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-15T08:03:59Z","updated_at":"2015-05-19T19:21:39Z","closed_at":"2015-05-19T19:21:39Z","body":"A user of my library [lensfunpy](https://pypi.python.org/pypi/lensfunpy) reported that it wasn't working with pyinstaller. Apparently packaged xml files to be loaded weren't found. I haven't tested this myself yet. Note that lensfunpy is a Cython wrapper around a native library (dll), and I guess what fails is the [following code](https://github.com/neothemachine/lensfunpy/blob/master/lensfunpy/__init__.py):\r\n\r\n```python\r\n    _ROOT = os.path.abspath(os.path.dirname(__file__))\r\n    _xml_glob = os.path.join(_ROOT, 'db_files', '*.xml')\r\n...\r\n    paths = glob.glob(_xml_glob)\r\n```\r\n\r\nSo what is pyinstaller doing in such a case where `__file__` is used? Is that supported? Do I have to change anything?"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/103640740","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1271#issuecomment-103640740","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1271","id":103640740,"user":{"login":"htgoebel","id":784161,"avatar_url":"https://avatars.githubusercontent.com/u/784161?v=3","gravatar_id":"","url":"https://api.github.com/users/htgoebel","html_url":"https://github.com/htgoebel","followers_url":"https://api.github.com/users/htgoebel/followers","following_url":"https://api.github.com/users/htgoebel/following{/other_user}","gists_url":"https://api.github.com/users/htgoebel/gists{/gist_id}","starred_url":"https://api.github.com/users/htgoebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htgoebel/subscriptions","organizations_url":"https://api.github.com/users/htgoebel/orgs","repos_url":"https://api.github.com/users/htgoebel/repos","events_url":"https://api.github.com/users/htgoebel/events{/privacy}","received_events_url":"https://api.github.com/users/htgoebel/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T19:21:39Z","updated_at":"2015-05-19T19:21:39Z","body":"Closing the issue, as there is a related pull request now."}}