{"action":"closed","issue":{"url":"https://api.github.com/repos/vlachoudis/bCNC/issues/176","labels_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/176/comments","events_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/176/events","html_url":"https://github.com/vlachoudis/bCNC/issues/176","id":123115415,"number":176,"title":"Program will not start on virgin PC","user":{"login":"flaplante","id":618335,"avatar_url":"https://avatars.githubusercontent.com/u/618335?v=3","gravatar_id":"","url":"https://api.github.com/users/flaplante","html_url":"https://github.com/flaplante","followers_url":"https://api.github.com/users/flaplante/followers","following_url":"https://api.github.com/users/flaplante/following{/other_user}","gists_url":"https://api.github.com/users/flaplante/gists{/gist_id}","starred_url":"https://api.github.com/users/flaplante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaplante/subscriptions","organizations_url":"https://api.github.com/users/flaplante/orgs","repos_url":"https://api.github.com/users/flaplante/repos","events_url":"https://api.github.com/users/flaplante/events{/privacy}","received_events_url":"https://api.github.com/users/flaplante/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-19T22:59:34Z","updated_at":"2016-01-16T14:14:42Z","closed_at":"2016-01-16T14:14:42Z","body":"Attempting to run bcnc.py via Idle on a Windows 7 or Raspberry Pi both yield:\r\n\"NameError: name '__file__' is not defined\"\r\nchange line #46 to read:\r\ntry:\r\n    PRGPATH=os.path.sbspath(os.path.dirname(__file__))\r\nexcept:\r\n    PRGPATH=os.path.sbspath(os.getcwd())\r\n\r\nand program starts as expected."}}