{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1229","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1229/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1229/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1229","id":65848650,"number":1229,"title":"trying to include a config file with exe","user":{"login":"mythreal","id":11758327,"avatar_url":"https://avatars.githubusercontent.com/u/11758327?v=3","gravatar_id":"","url":"https://api.github.com/users/mythreal","html_url":"https://github.com/mythreal","followers_url":"https://api.github.com/users/mythreal/followers","following_url":"https://api.github.com/users/mythreal/following{/other_user}","gists_url":"https://api.github.com/users/mythreal/gists{/gist_id}","starred_url":"https://api.github.com/users/mythreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythreal/subscriptions","organizations_url":"https://api.github.com/users/mythreal/orgs","repos_url":"https://api.github.com/users/mythreal/repos","events_url":"https://api.github.com/users/mythreal/events{/privacy}","received_events_url":"https://api.github.com/users/mythreal/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":2,"created_at":"2015-04-02T06:07:57Z","updated_at":"2015-04-02T15:24:41Z","closed_at":"2015-04-02T08:18:05Z","body":"I have been reading the PDF and am unsure about how to include a .json file with the exe. My exe requires this as a config file. Single file exe or multi-file. It is unclear to me if I can use the -r flag. if so how do you know the type? would it be JSON? then name.json? Then JSON? \r\n\r\nI have built a spec file as well to try that out.  I have tried \r\ncollect = COLLECT(a.binaries + [('JSON', 'C:\\\\Desktop\\\\DT\\\\file.json', 'DATA')])\r\nbut the documentation is unclear there as well, at least to me. \r\nI thought I should ask if I should be using this as a hook file (datas)?\r\nI have tryed moving the .json to the same path as the exe as that is where my code looks for it but that doesnt work either.\r\nI have been searching for days and have found very little information on the subject.\r\nMaybe im trying to do something unsupported?\r\nThanks for your time.\r\n"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/88945728","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1229#issuecomment-88945728","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1229","id":88945728,"user":{"login":"mythreal","id":11758327,"avatar_url":"https://avatars.githubusercontent.com/u/11758327?v=3","gravatar_id":"","url":"https://api.github.com/users/mythreal","html_url":"https://github.com/mythreal","followers_url":"https://api.github.com/users/mythreal/followers","following_url":"https://api.github.com/users/mythreal/following{/other_user}","gists_url":"https://api.github.com/users/mythreal/gists{/gist_id}","starred_url":"https://api.github.com/users/mythreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythreal/subscriptions","organizations_url":"https://api.github.com/users/mythreal/orgs","repos_url":"https://api.github.com/users/mythreal/repos","events_url":"https://api.github.com/users/mythreal/events{/privacy}","received_events_url":"https://api.github.com/users/mythreal/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T15:24:41Z","updated_at":"2015-04-02T15:24:41Z","body":"Thanks for the point in the right direction. I appreciate that. It's not that I havent been playing around with this for a week straight. Just looks like I was playing around with the wrong things.\n\nThanks again. \n\n\n     On Thursday, April 2, 2015 2:18 AM, Hartmut Goebel <notifications@github.com> wrote:\n   \n\n Closed #1229.—\nReply to this email directly or view it on GitHub.   \n\n  "}}