{"action":"created","comment":{"url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments/42287721","id":42287721,"diff_hunk":"@@ -0,0 +1,72 @@\n+#!/usr/bin/python -B\n+\n+# Insert the parent directory into the module import search path.\n+import os\n+import sys\n+sys.path.insert(1, os.path.dirname(sys.path[0]))","path":"python/get_config.py","position":6,"original_position":6,"commit_id":"224214d3754e6667cf850c1f59296e7ee629ceee","original_commit_id":"0c40482e8fb1ffaa027b0730c5c1094ebfcb7c87","user":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"body":"This is in various of the command line tools so you can do python/dumplog.py or ~/taulabs/python/dumplog.py","created_at":"2015-10-16T20:40:28Z","updated_at":"2015-10-16T20:40:28Z","html_url":"https://github.com/TauLabs/TauLabs/pull/1993#discussion_r42287721","pull_request_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993","_links":{"self":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments/42287721"},"html":{"href":"https://github.com/TauLabs/TauLabs/pull/1993#discussion_r42287721"},"pull_request":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993"}}},"pull_request":{"url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993","id":47946932,"html_url":"https://github.com/TauLabs/TauLabs/pull/1993","diff_url":"https://github.com/TauLabs/TauLabs/pull/1993.diff","patch_url":"https://github.com/TauLabs/TauLabs/pull/1993.patch","issue_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1993","number":1993,"state":"open","locked":false,"title":"python-api: cleanup, better serial support","user":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"body":"- refactor serial objects to directly use pyserial primitives.  This is\r\nprogress towards the API working well with hardware on windows.\r\n- use enums inside the handshaking routine in the telemetry class, along\r\nwith defaults.\r\n- adjust telemetry class to initially send \"disconnected\" state\r\n- remove debugging try/except inside uavo.py\r\n- use the uavo_collection to find parents instead of accessing global\r\nnamespace\r\n- make updating global namespace optional in the innermost parts of\r\npython-api -- this will be plumbed out in the future\r\n- fix find_by_name() call to support current uavo_collection dictionary\r\nsemantics\r\n- add a get_config.py that retrieves configuration from a flight board","created_at":"2015-10-16T18:55:04Z","updated_at":"2015-10-16T20:40:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48472a41a43cbe86254f62c63473005c524c7b38","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993/commits","review_comments_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993/comments","review_comment_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/1993/comments","statuses_url":"https://api.github.com/repos/TauLabs/TauLabs/statuses/224214d3754e6667cf850c1f59296e7ee629ceee","head":{"label":"mlyle:mpl-snakes","ref":"mpl-snakes","sha":"224214d3754e6667cf850c1f59296e7ee629ceee","user":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"repo":{"id":33151589,"name":"taulabs","full_name":"mlyle/taulabs","owner":{"login":"mlyle","id":90903,"avatar_url":"https://avatars.githubusercontent.com/u/90903?v=3","gravatar_id":"","url":"https://api.github.com/users/mlyle","html_url":"https://github.com/mlyle","followers_url":"https://api.github.com/users/mlyle/followers","following_url":"https://api.github.com/users/mlyle/following{/other_user}","gists_url":"https://api.github.com/users/mlyle/gists{/gist_id}","starred_url":"https://api.github.com/users/mlyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlyle/subscriptions","organizations_url":"https://api.github.com/users/mlyle/orgs","repos_url":"https://api.github.com/users/mlyle/repos","events_url":"https://api.github.com/users/mlyle/events{/privacy}","received_events_url":"https://api.github.com/users/mlyle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mlyle/taulabs","description":"","fork":true,"url":"https://api.github.com/repos/mlyle/taulabs","forks_url":"https://api.github.com/repos/mlyle/taulabs/forks","keys_url":"https://api.github.com/repos/mlyle/taulabs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlyle/taulabs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlyle/taulabs/teams","hooks_url":"https://api.github.com/repos/mlyle/taulabs/hooks","issue_events_url":"https://api.github.com/repos/mlyle/taulabs/issues/events{/number}","events_url":"https://api.github.com/repos/mlyle/taulabs/events","assignees_url":"https://api.github.com/repos/mlyle/taulabs/assignees{/user}","branches_url":"https://api.github.com/repos/mlyle/taulabs/branches{/branch}","tags_url":"https://api.github.com/repos/mlyle/taulabs/tags","blobs_url":"https://api.github.com/repos/mlyle/taulabs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlyle/taulabs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlyle/taulabs/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlyle/taulabs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlyle/taulabs/statuses/{sha}","languages_url":"https://api.github.com/repos/mlyle/taulabs/languages","stargazers_url":"https://api.github.com/repos/mlyle/taulabs/stargazers","contributors_url":"https://api.github.com/repos/mlyle/taulabs/contributors","subscribers_url":"https://api.github.com/repos/mlyle/taulabs/subscribers","subscription_url":"https://api.github.com/repos/mlyle/taulabs/subscription","commits_url":"https://api.github.com/repos/mlyle/taulabs/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlyle/taulabs/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlyle/taulabs/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlyle/taulabs/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlyle/taulabs/contents/{+path}","compare_url":"https://api.github.com/repos/mlyle/taulabs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlyle/taulabs/merges","archive_url":"https://api.github.com/repos/mlyle/taulabs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlyle/taulabs/downloads","issues_url":"https://api.github.com/repos/mlyle/taulabs/issues{/number}","pulls_url":"https://api.github.com/repos/mlyle/taulabs/pulls{/number}","milestones_url":"https://api.github.com/repos/mlyle/taulabs/milestones{/number}","notifications_url":"https://api.github.com/repos/mlyle/taulabs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlyle/taulabs/labels{/name}","releases_url":"https://api.github.com/repos/mlyle/taulabs/releases{/id}","created_at":"2015-03-30T22:24:21Z","updated_at":"2015-10-04T06:32:53Z","pushed_at":"2015-10-16T20:26:37Z","git_url":"git://github.com/mlyle/taulabs.git","ssh_url":"git@github.com:mlyle/taulabs.git","clone_url":"https://github.com/mlyle/taulabs.git","svn_url":"https://github.com/mlyle/taulabs","homepage":"taulabs.org","size":211152,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"next"}},"base":{"label":"TauLabs:next","ref":"next","sha":"5e7958eccb39c61bcb5522d0c18ac887fac64c1c","user":{"login":"TauLabs","id":3201381,"avatar_url":"https://avatars.githubusercontent.com/u/3201381?v=3","gravatar_id":"","url":"https://api.github.com/users/TauLabs","html_url":"https://github.com/TauLabs","followers_url":"https://api.github.com/users/TauLabs/followers","following_url":"https://api.github.com/users/TauLabs/following{/other_user}","gists_url":"https://api.github.com/users/TauLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/TauLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TauLabs/subscriptions","organizations_url":"https://api.github.com/users/TauLabs/orgs","repos_url":"https://api.github.com/users/TauLabs/repos","events_url":"https://api.github.com/users/TauLabs/events{/privacy}","received_events_url":"https://api.github.com/users/TauLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":6589168,"name":"TauLabs","full_name":"TauLabs/TauLabs","owner":{"login":"TauLabs","id":3201381,"avatar_url":"https://avatars.githubusercontent.com/u/3201381?v=3","gravatar_id":"","url":"https://api.github.com/users/TauLabs","html_url":"https://github.com/TauLabs","followers_url":"https://api.github.com/users/TauLabs/followers","following_url":"https://api.github.com/users/TauLabs/following{/other_user}","gists_url":"https://api.github.com/users/TauLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/TauLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TauLabs/subscriptions","organizations_url":"https://api.github.com/users/TauLabs/orgs","repos_url":"https://api.github.com/users/TauLabs/repos","events_url":"https://api.github.com/users/TauLabs/events{/privacy}","received_events_url":"https://api.github.com/users/TauLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TauLabs/TauLabs","description":"","fork":false,"url":"https://api.github.com/repos/TauLabs/TauLabs","forks_url":"https://api.github.com/repos/TauLabs/TauLabs/forks","keys_url":"https://api.github.com/repos/TauLabs/TauLabs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TauLabs/TauLabs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TauLabs/TauLabs/teams","hooks_url":"https://api.github.com/repos/TauLabs/TauLabs/hooks","issue_events_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/events{/number}","events_url":"https://api.github.com/repos/TauLabs/TauLabs/events","assignees_url":"https://api.github.com/repos/TauLabs/TauLabs/assignees{/user}","branches_url":"https://api.github.com/repos/TauLabs/TauLabs/branches{/branch}","tags_url":"https://api.github.com/repos/TauLabs/TauLabs/tags","blobs_url":"https://api.github.com/repos/TauLabs/TauLabs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TauLabs/TauLabs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TauLabs/TauLabs/git/refs{/sha}","trees_url":"https://api.github.com/repos/TauLabs/TauLabs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TauLabs/TauLabs/statuses/{sha}","languages_url":"https://api.github.com/repos/TauLabs/TauLabs/languages","stargazers_url":"https://api.github.com/repos/TauLabs/TauLabs/stargazers","contributors_url":"https://api.github.com/repos/TauLabs/TauLabs/contributors","subscribers_url":"https://api.github.com/repos/TauLabs/TauLabs/subscribers","subscription_url":"https://api.github.com/repos/TauLabs/TauLabs/subscription","commits_url":"https://api.github.com/repos/TauLabs/TauLabs/commits{/sha}","git_commits_url":"https://api.github.com/repos/TauLabs/TauLabs/git/commits{/sha}","comments_url":"https://api.github.com/repos/TauLabs/TauLabs/comments{/number}","issue_comment_url":"https://api.github.com/repos/TauLabs/TauLabs/issues/comments{/number}","contents_url":"https://api.github.com/repos/TauLabs/TauLabs/contents/{+path}","compare_url":"https://api.github.com/repos/TauLabs/TauLabs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TauLabs/TauLabs/merges","archive_url":"https://api.github.com/repos/TauLabs/TauLabs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TauLabs/TauLabs/downloads","issues_url":"https://api.github.com/repos/TauLabs/TauLabs/issues{/number}","pulls_url":"https://api.github.com/repos/TauLabs/TauLabs/pulls{/number}","milestones_url":"https://api.github.com/repos/TauLabs/TauLabs/milestones{/number}","notifications_url":"https://api.github.com/repos/TauLabs/TauLabs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TauLabs/TauLabs/labels{/name}","releases_url":"https://api.github.com/repos/TauLabs/TauLabs/releases{/id}","created_at":"2012-11-08T01:01:18Z","updated_at":"2015-10-14T14:36:41Z","pushed_at":"2015-10-16T20:26:38Z","git_url":"git://github.com/TauLabs/TauLabs.git","ssh_url":"git@github.com:TauLabs/TauLabs.git","clone_url":"https://github.com/TauLabs/TauLabs.git","svn_url":"https://github.com/TauLabs/TauLabs","homepage":"taulabs.org","size":334074,"stargazers_count":277,"watchers_count":277,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":320,"mirror_url":null,"open_issues_count":260,"forks":320,"open_issues":260,"watchers":277,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993"},"html":{"href":"https://github.com/TauLabs/TauLabs/pull/1993"},"issue":{"href":"https://api.github.com/repos/TauLabs/TauLabs/issues/1993"},"comments":{"href":"https://api.github.com/repos/TauLabs/TauLabs/issues/1993/comments"},"review_comments":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993/comments"},"review_comment":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TauLabs/TauLabs/pulls/1993/commits"},"statuses":{"href":"https://api.github.com/repos/TauLabs/TauLabs/statuses/224214d3754e6667cf850c1f59296e7ee629ceee"}}}}