{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/1741","labels_url":"https://api.github.com/repos/micropython/micropython/issues/1741/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/1741/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/1741/events","html_url":"https://github.com/micropython/micropython/issues/1741","id":123462435,"number":1741,"title":"boot.py should be site.py","user":{"login":"pfalcon","id":500451,"avatar_url":"https://avatars.githubusercontent.com/u/500451?v=3","gravatar_id":"","url":"https://api.github.com/users/pfalcon","html_url":"https://github.com/pfalcon","followers_url":"https://api.github.com/users/pfalcon/followers","following_url":"https://api.github.com/users/pfalcon/following{/other_user}","gists_url":"https://api.github.com/users/pfalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/pfalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfalcon/subscriptions","organizations_url":"https://api.github.com/users/pfalcon/orgs","repos_url":"https://api.github.com/users/pfalcon/repos","events_url":"https://api.github.com/users/pfalcon/events{/privacy}","received_events_url":"https://api.github.com/users/pfalcon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-22T11:17:17Z","updated_at":"2015-12-26T23:46:27Z","closed_at":null,"body":"Python has a standard module which gets imported during interpreter startup: \"site\" https://docs.python.org/3/library/site.html . We should consider how much boot.py semantics differ from site.py, add support for site.py, and ideally deprecate boot.py.\r\n\r\nThis issue comes up after considering how to add Python-level features to unix port (e.g. \"help()\"), but also how to clean it up for other new ports.\r\n"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/167371806","html_url":"https://github.com/micropython/micropython/issues/1741#issuecomment-167371806","issue_url":"https://api.github.com/repos/micropython/micropython/issues/1741","id":167371806,"user":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"created_at":"2015-12-26T23:46:27Z","updated_at":"2015-12-26T23:46:27Z","body":"Presumably, if someone really wanted site.py support then boot.py could just import it.\r\n\r\nI think there is definitely merit in having some type of startup file for unix micrpython. Is site.py imported or execfile'd?\r\n\r\nI really like the fact that boot.py is execfile'd and can modify the defaiult REPL environment."}}