{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/1213","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/1213/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/1213/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/1213/events","html_url":"https://github.com/xonsh/xonsh/pull/1213","id":159807333,"number":1213,"title":"added top level xonsh enterpoint for dev","user":{"login":"mitnk","id":177049,"avatar_url":"https://avatars.githubusercontent.com/u/177049?v=3","gravatar_id":"","url":"https://api.github.com/users/mitnk","html_url":"https://github.com/mitnk","followers_url":"https://api.github.com/users/mitnk/followers","following_url":"https://api.github.com/users/mitnk/following{/other_user}","gists_url":"https://api.github.com/users/mitnk/gists{/gist_id}","starred_url":"https://api.github.com/users/mitnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitnk/subscriptions","organizations_url":"https://api.github.com/users/mitnk/orgs","repos_url":"https://api.github.com/users/mitnk/repos","events_url":"https://api.github.com/users/mitnk/events{/privacy}","received_events_url":"https://api.github.com/users/mitnk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xonsh/xonsh/labels/feature","name":"feature","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/xonsh/xonsh/milestones/4","html_url":"https://github.com/xonsh/xonsh/milestones/v0.4.0","labels_url":"https://api.github.com/repos/xonsh/xonsh/milestones/4/labels","id":1779851,"number":4,"title":"v0.4.0","description":"","creator":{"login":"scopatz","id":320553,"avatar_url":"https://avatars.githubusercontent.com/u/320553?v=3","gravatar_id":"","url":"https://api.github.com/users/scopatz","html_url":"https://github.com/scopatz","followers_url":"https://api.github.com/users/scopatz/followers","following_url":"https://api.github.com/users/scopatz/following{/other_user}","gists_url":"https://api.github.com/users/scopatz/gists{/gist_id}","starred_url":"https://api.github.com/users/scopatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scopatz/subscriptions","organizations_url":"https://api.github.com/users/scopatz/orgs","repos_url":"https://api.github.com/users/scopatz/repos","events_url":"https://api.github.com/users/scopatz/events{/privacy}","received_events_url":"https://api.github.com/users/scopatz/received_events","type":"User","site_admin":false},"open_issues":166,"closed_issues":125,"state":"open","created_at":"2016-05-20T22:54:44Z","updated_at":"2016-06-14T00:26:52Z","due_on":"2016-06-30T04:00:00Z","closed_at":null},"comments":13,"created_at":"2016-06-12T04:29:34Z","updated_at":"2016-06-14T00:26:52Z","closed_at":"2016-06-14T00:26:52Z","pull_request":{"url":"https://api.github.com/repos/xonsh/xonsh/pulls/1213","html_url":"https://github.com/xonsh/xonsh/pull/1213","diff_url":"https://github.com/xonsh/xonsh/pull/1213.diff","patch_url":"https://github.com/xonsh/xonsh/pull/1213.patch"},"body":"When developing xonsh inside the repo and If we want to test something without installing the code to system, we would run following command:\r\n\r\n```\r\nthe-repo $ python3 xonsh/main.py -c 'echo hi'\r\n```\r\n\r\nBut we will get `AttributeError: module 'platform' has no attribute 'system'` since Python will add `the-repo/xonsh` to the beginning of `sys.path`, and we have our own `platform` module inside this dir which causes this issue.\r\n\r\nThis PR is trying to add a helper enterpoint for developers only, which allow you to test xonsh like this:\r\n\r\n```\r\nthe-repo $ python3 main.py -c 'echo hi'\r\n```\r\n\r\nDoes this PR make sense to you?"},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/225748047","html_url":"https://github.com/xonsh/xonsh/pull/1213#issuecomment-225748047","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/1213","id":225748047,"user":{"login":"mitnk","id":177049,"avatar_url":"https://avatars.githubusercontent.com/u/177049?v=3","gravatar_id":"","url":"https://api.github.com/users/mitnk","html_url":"https://github.com/mitnk","followers_url":"https://api.github.com/users/mitnk/followers","following_url":"https://api.github.com/users/mitnk/following{/other_user}","gists_url":"https://api.github.com/users/mitnk/gists{/gist_id}","starred_url":"https://api.github.com/users/mitnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitnk/subscriptions","organizations_url":"https://api.github.com/users/mitnk/orgs","repos_url":"https://api.github.com/users/mitnk/repos","events_url":"https://api.github.com/users/mitnk/events{/privacy}","received_events_url":"https://api.github.com/users/mitnk/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T00:26:52Z","updated_at":"2016-06-14T00:26:52Z","body":"Yes, `python -m xonsh` in the repo works for me :) Thanks @scopatz, @adqm ! Closing this PR then."}}
{"actor":{"display_login":"mitnk"}}