{"action":"closed","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1208","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1208/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1208/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1208/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1208","id":60784940,"number":1208,"title":"Symlinks and sys.argv[0]","user":{"login":"prologic","id":1290234,"avatar_url":"https://avatars.githubusercontent.com/u/1290234?v=3","gravatar_id":"","url":"https://api.github.com/users/prologic","html_url":"https://github.com/prologic","followers_url":"https://api.github.com/users/prologic/followers","following_url":"https://api.github.com/users/prologic/following{/other_user}","gists_url":"https://api.github.com/users/prologic/gists{/gist_id}","starred_url":"https://api.github.com/users/prologic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prologic/subscriptions","organizations_url":"https://api.github.com/users/prologic/orgs","repos_url":"https://api.github.com/users/prologic/repos","events_url":"https://api.github.com/users/prologic/events{/privacy}","received_events_url":"https://api.github.com/users/prologic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/@low","name":"@low","color":"f7c6c7"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/Linux","name":"Linux","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-12T08:20:43Z","updated_at":"2015-08-26T04:40:50Z","closed_at":"2015-08-26T04:40:50Z","body":"If I package up a single file app ``pyinstaller -s -F bin/foo``\r\n\r\nand have the following symlinked:\r\n\r\n```\r\nfoo\r\nbar -> foo\r\n```\r\n\r\nI don't seem to find a way to determine whther\r\nthe app was run from the symlinked ``bar`` at all.\r\n\r\n``sys.argv[0]`` seems to always point to the real page.\r\n\r\nAny ideas? I sthis a bug?"}}