{"action":"created","comment":{"url":"https://api.github.com/repos/ros2/rclpy/pulls/comments/61135698","id":61135698,"diff_hunk":"@@ -0,0 +1,60 @@\n+# Copyright 2016 Open Source Robotics Foundation, Inc.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+import os\n+import sys\n+import time\n+\n+# this is needed to allow rclpy to be imported from the build folder\n+sys.path.insert(0, os.getcwd())\n+\n+\n+def talker():\n+    import rclpy","path":"rclpy/test/talker_nested.py","position":24,"original_position":24,"commit_id":"aff92a889c55c27154272399bcce83e1def39b59","original_commit_id":"aff92a889c55c27154272399bcce83e1def39b59","user":{"login":"dirk-thomas","id":1335366,"avatar_url":"https://avatars.githubusercontent.com/u/1335366?v=3","gravatar_id":"","url":"https://api.github.com/users/dirk-thomas","html_url":"https://github.com/dirk-thomas","followers_url":"https://api.github.com/users/dirk-thomas/followers","following_url":"https://api.github.com/users/dirk-thomas/following{/other_user}","gists_url":"https://api.github.com/users/dirk-thomas/gists{/gist_id}","starred_url":"https://api.github.com/users/dirk-thomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirk-thomas/subscriptions","organizations_url":"https://api.github.com/users/dirk-thomas/orgs","repos_url":"https://api.github.com/users/dirk-thomas/repos","events_url":"https://api.github.com/users/dirk-thomas/events{/privacy}","received_events_url":"https://api.github.com/users/dirk-thomas/received_events","type":"User","site_admin":false},"body":"Can't these imports be done at module level - after `sys.path.insert`?\r\n\r\nSame in the other file.","created_at":"2016-04-26T18:09:22Z","updated_at":"2016-04-26T18:09:22Z","html_url":"https://github.com/ros2/rclpy/pull/16#discussion_r61135698","pull_request_url":"https://api.github.com/repos/ros2/rclpy/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/ros2/rclpy/pulls/comments/61135698"},"html":{"href":"https://github.com/ros2/rclpy/pull/16#discussion_r61135698"},"pull_request":{"href":"https://api.github.com/repos/ros2/rclpy/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/ros2/rclpy/pulls/16","id":66254217,"html_url":"https://github.com/ros2/rclpy/pull/16","diff_url":"https://github.com/ros2/rclpy/pull/16.diff","patch_url":"https://github.com/ros2/rclpy/pull/16.patch","issue_url":"https://api.github.com/repos/ros2/rclpy/issues/16","number":16,"state":"open","locked":false,"title":"extended test to cover nested messages","user":{"login":"mikaelarguedas","id":6644208,"avatar_url":"https://avatars.githubusercontent.com/u/6644208?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelarguedas","html_url":"https://github.com/mikaelarguedas","followers_url":"https://api.github.com/users/mikaelarguedas/followers","following_url":"https://api.github.com/users/mikaelarguedas/following{/other_user}","gists_url":"https://api.github.com/users/mikaelarguedas/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelarguedas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelarguedas/subscriptions","organizations_url":"https://api.github.com/users/mikaelarguedas/orgs","repos_url":"https://api.github.com/users/mikaelarguedas/repos","events_url":"https://api.github.com/users/mikaelarguedas/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelarguedas/received_events","type":"User","site_admin":false},"body":"Connects to ros2/rosidl#96\r\nThis PR allows to test nested messages added in https://github.com/ros2/rosidl/pull/113","created_at":"2016-04-13T01:38:45Z","updated_at":"2016-04-26T18:09:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8215a7214f3651a5231fe393f739af3edbeb69f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ros2/rclpy/pulls/16/commits","review_comments_url":"https://api.github.com/repos/ros2/rclpy/pulls/16/comments","review_comment_url":"https://api.github.com/repos/ros2/rclpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ros2/rclpy/issues/16/comments","statuses_url":"https://api.github.com/repos/ros2/rclpy/statuses/aff92a889c55c27154272399bcce83e1def39b59","head":{"label":"ros2:add_nested_msg_support","ref":"add_nested_msg_support","sha":"aff92a889c55c27154272399bcce83e1def39b59","user":{"login":"ros2","id":3979232,"avatar_url":"https://avatars.githubusercontent.com/u/3979232?v=3","gravatar_id":"","url":"https://api.github.com/users/ros2","html_url":"https://github.com/ros2","followers_url":"https://api.github.com/users/ros2/followers","following_url":"https://api.github.com/users/ros2/following{/other_user}","gists_url":"https://api.github.com/users/ros2/gists{/gist_id}","starred_url":"https://api.github.com/users/ros2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros2/subscriptions","organizations_url":"https://api.github.com/users/ros2/orgs","repos_url":"https://api.github.com/users/ros2/repos","events_url":"https://api.github.com/users/ros2/events{/privacy}","received_events_url":"https://api.github.com/users/ros2/received_events","type":"Organization","site_admin":false},"repo":{"id":46515609,"name":"rclpy","full_name":"ros2/rclpy","owner":{"login":"ros2","id":3979232,"avatar_url":"https://avatars.githubusercontent.com/u/3979232?v=3","gravatar_id":"","url":"https://api.github.com/users/ros2","html_url":"https://github.com/ros2","followers_url":"https://api.github.com/users/ros2/followers","following_url":"https://api.github.com/users/ros2/following{/other_user}","gists_url":"https://api.github.com/users/ros2/gists{/gist_id}","starred_url":"https://api.github.com/users/ros2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros2/subscriptions","organizations_url":"https://api.github.com/users/ros2/orgs","repos_url":"https://api.github.com/users/ros2/repos","events_url":"https://api.github.com/users/ros2/events{/privacy}","received_events_url":"https://api.github.com/users/ros2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ros2/rclpy","description":"rclpy (ROS Client Library for Python)","fork":false,"url":"https://api.github.com/repos/ros2/rclpy","forks_url":"https://api.github.com/repos/ros2/rclpy/forks","keys_url":"https://api.github.com/repos/ros2/rclpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ros2/rclpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ros2/rclpy/teams","hooks_url":"https://api.github.com/repos/ros2/rclpy/hooks","issue_events_url":"https://api.github.com/repos/ros2/rclpy/issues/events{/number}","events_url":"https://api.github.com/repos/ros2/rclpy/events","assignees_url":"https://api.github.com/repos/ros2/rclpy/assignees{/user}","branches_url":"https://api.github.com/repos/ros2/rclpy/branches{/branch}","tags_url":"https://api.github.com/repos/ros2/rclpy/tags","blobs_url":"https://api.github.com/repos/ros2/rclpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ros2/rclpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ros2/rclpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ros2/rclpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ros2/rclpy/statuses/{sha}","languages_url":"https://api.github.com/repos/ros2/rclpy/languages","stargazers_url":"https://api.github.com/repos/ros2/rclpy/stargazers","contributors_url":"https://api.github.com/repos/ros2/rclpy/contributors","subscribers_url":"https://api.github.com/repos/ros2/rclpy/subscribers","subscription_url":"https://api.github.com/repos/ros2/rclpy/subscription","commits_url":"https://api.github.com/repos/ros2/rclpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ros2/rclpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ros2/rclpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ros2/rclpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ros2/rclpy/contents/{+path}","compare_url":"https://api.github.com/repos/ros2/rclpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ros2/rclpy/merges","archive_url":"https://api.github.com/repos/ros2/rclpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ros2/rclpy/downloads","issues_url":"https://api.github.com/repos/ros2/rclpy/issues{/number}","pulls_url":"https://api.github.com/repos/ros2/rclpy/pulls{/number}","milestones_url":"https://api.github.com/repos/ros2/rclpy/milestones{/number}","notifications_url":"https://api.github.com/repos/ros2/rclpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ros2/rclpy/labels{/name}","releases_url":"https://api.github.com/repos/ros2/rclpy/releases{/id}","deployments_url":"https://api.github.com/repos/ros2/rclpy/deployments","created_at":"2015-11-19T19:34:49Z","updated_at":"2016-04-01T18:39:40Z","pushed_at":"2016-04-26T16:32:10Z","git_url":"git://github.com/ros2/rclpy.git","ssh_url":"git@github.com:ros2/rclpy.git","clone_url":"https://github.com/ros2/rclpy.git","svn_url":"https://github.com/ros2/rclpy","homepage":null,"size":76,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"ros2:master","ref":"master","sha":"34fbce930c4c3762b17a2573cf0b0c3b56e67bc1","user":{"login":"ros2","id":3979232,"avatar_url":"https://avatars.githubusercontent.com/u/3979232?v=3","gravatar_id":"","url":"https://api.github.com/users/ros2","html_url":"https://github.com/ros2","followers_url":"https://api.github.com/users/ros2/followers","following_url":"https://api.github.com/users/ros2/following{/other_user}","gists_url":"https://api.github.com/users/ros2/gists{/gist_id}","starred_url":"https://api.github.com/users/ros2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros2/subscriptions","organizations_url":"https://api.github.com/users/ros2/orgs","repos_url":"https://api.github.com/users/ros2/repos","events_url":"https://api.github.com/users/ros2/events{/privacy}","received_events_url":"https://api.github.com/users/ros2/received_events","type":"Organization","site_admin":false},"repo":{"id":46515609,"name":"rclpy","full_name":"ros2/rclpy","owner":{"login":"ros2","id":3979232,"avatar_url":"https://avatars.githubusercontent.com/u/3979232?v=3","gravatar_id":"","url":"https://api.github.com/users/ros2","html_url":"https://github.com/ros2","followers_url":"https://api.github.com/users/ros2/followers","following_url":"https://api.github.com/users/ros2/following{/other_user}","gists_url":"https://api.github.com/users/ros2/gists{/gist_id}","starred_url":"https://api.github.com/users/ros2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros2/subscriptions","organizations_url":"https://api.github.com/users/ros2/orgs","repos_url":"https://api.github.com/users/ros2/repos","events_url":"https://api.github.com/users/ros2/events{/privacy}","received_events_url":"https://api.github.com/users/ros2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ros2/rclpy","description":"rclpy (ROS Client Library for Python)","fork":false,"url":"https://api.github.com/repos/ros2/rclpy","forks_url":"https://api.github.com/repos/ros2/rclpy/forks","keys_url":"https://api.github.com/repos/ros2/rclpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ros2/rclpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ros2/rclpy/teams","hooks_url":"https://api.github.com/repos/ros2/rclpy/hooks","issue_events_url":"https://api.github.com/repos/ros2/rclpy/issues/events{/number}","events_url":"https://api.github.com/repos/ros2/rclpy/events","assignees_url":"https://api.github.com/repos/ros2/rclpy/assignees{/user}","branches_url":"https://api.github.com/repos/ros2/rclpy/branches{/branch}","tags_url":"https://api.github.com/repos/ros2/rclpy/tags","blobs_url":"https://api.github.com/repos/ros2/rclpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ros2/rclpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ros2/rclpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ros2/rclpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ros2/rclpy/statuses/{sha}","languages_url":"https://api.github.com/repos/ros2/rclpy/languages","stargazers_url":"https://api.github.com/repos/ros2/rclpy/stargazers","contributors_url":"https://api.github.com/repos/ros2/rclpy/contributors","subscribers_url":"https://api.github.com/repos/ros2/rclpy/subscribers","subscription_url":"https://api.github.com/repos/ros2/rclpy/subscription","commits_url":"https://api.github.com/repos/ros2/rclpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ros2/rclpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ros2/rclpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ros2/rclpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ros2/rclpy/contents/{+path}","compare_url":"https://api.github.com/repos/ros2/rclpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ros2/rclpy/merges","archive_url":"https://api.github.com/repos/ros2/rclpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ros2/rclpy/downloads","issues_url":"https://api.github.com/repos/ros2/rclpy/issues{/number}","pulls_url":"https://api.github.com/repos/ros2/rclpy/pulls{/number}","milestones_url":"https://api.github.com/repos/ros2/rclpy/milestones{/number}","notifications_url":"https://api.github.com/repos/ros2/rclpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ros2/rclpy/labels{/name}","releases_url":"https://api.github.com/repos/ros2/rclpy/releases{/id}","deployments_url":"https://api.github.com/repos/ros2/rclpy/deployments","created_at":"2015-11-19T19:34:49Z","updated_at":"2016-04-01T18:39:40Z","pushed_at":"2016-04-26T16:32:10Z","git_url":"git://github.com/ros2/rclpy.git","ssh_url":"git@github.com:ros2/rclpy.git","clone_url":"https://github.com/ros2/rclpy.git","svn_url":"https://github.com/ros2/rclpy","homepage":null,"size":76,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ros2/rclpy/pulls/16"},"html":{"href":"https://github.com/ros2/rclpy/pull/16"},"issue":{"href":"https://api.github.com/repos/ros2/rclpy/issues/16"},"comments":{"href":"https://api.github.com/repos/ros2/rclpy/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/ros2/rclpy/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/ros2/rclpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ros2/rclpy/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/ros2/rclpy/statuses/aff92a889c55c27154272399bcce83e1def39b59"}}}}