{"action":"closed","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1796","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1796/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1796/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1796/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1796","id":128574073,"number":1796,"title":"how to find the directory where onefile executable is located from the bundled python code?","user":{"login":"denfromufa","id":7870949,"avatar_url":"https://avatars.githubusercontent.com/u/7870949?v=3","gravatar_id":"","url":"https://api.github.com/users/denfromufa","html_url":"https://github.com/denfromufa","followers_url":"https://api.github.com/users/denfromufa/followers","following_url":"https://api.github.com/users/denfromufa/following{/other_user}","gists_url":"https://api.github.com/users/denfromufa/gists{/gist_id}","starred_url":"https://api.github.com/users/denfromufa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denfromufa/subscriptions","organizations_url":"https://api.github.com/users/denfromufa/orgs","repos_url":"https://api.github.com/users/denfromufa/repos","events_url":"https://api.github.com/users/denfromufa/events{/privacy}","received_events_url":"https://api.github.com/users/denfromufa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T16:21:21Z","updated_at":"2016-01-25T16:30:17Z","closed_at":"2016-01-25T16:30:17Z","body":"not the temporary directory where it is extracted\r\n\r\n`__file__` and `sys.argv[0]` do not work"}}