{"action":"created","comment":{"url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/comments/47335075","id":47335075,"diff_hunk":"@@ -1,9 +1,82 @@\n-class Options:\n-    def __init__(self, output_formats):\n-        self.output_formats = output_formats\n+import os\n+import shutil\n+import subprocess\n+import time\n \n-    def get_output_formats(self):\n-        return self.output_formats\n+from converters import garmin_converter\n+from converters import gis_converter\n+from converters.gis_converter.bootstrap import bootstrap\n+from utils import chg_dir_with","path":"conversion_service/converters/converter.py","position":14,"original_position":14,"commit_id":"98af8e7f66515357df362fb16e27c0001648a2ef","original_commit_id":"98af8e7f66515357df362fb16e27c0001648a2ef","user":{"login":"wasabideveloper","id":10944699,"avatar_url":"https://avatars.githubusercontent.com/u/10944699?v=3","gravatar_id":"","url":"https://api.github.com/users/wasabideveloper","html_url":"https://github.com/wasabideveloper","followers_url":"https://api.github.com/users/wasabideveloper/followers","following_url":"https://api.github.com/users/wasabideveloper/following{/other_user}","gists_url":"https://api.github.com/users/wasabideveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/wasabideveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasabideveloper/subscriptions","organizations_url":"https://api.github.com/users/wasabideveloper/orgs","repos_url":"https://api.github.com/users/wasabideveloper/repos","events_url":"https://api.github.com/users/wasabideveloper/events{/privacy}","received_events_url":"https://api.github.com/users/wasabideveloper/received_events","type":"User","site_admin":false},"body":"What's this function doing? Maybe it's more readable using a understandable alias on import.","created_at":"2015-12-11T09:27:31Z","updated_at":"2015-12-11T09:27:31Z","html_url":"https://github.com/geometalab/osmaxx-postgis-conversion/pull/63#discussion_r47335075","pull_request_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/comments/47335075"},"html":{"href":"https://github.com/geometalab/osmaxx-postgis-conversion/pull/63#discussion_r47335075"},"pull_request":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63","id":53265125,"html_url":"https://github.com/geometalab/osmaxx-postgis-conversion/pull/63","diff_url":"https://github.com/geometalab/osmaxx-postgis-conversion/pull/63.diff","patch_url":"https://github.com/geometalab/osmaxx-postgis-conversion/pull/63.patch","issue_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/63","number":63,"state":"open","locked":false,"title":"Feature/garmin","user":{"login":"hixi","id":97119,"avatar_url":"https://avatars.githubusercontent.com/u/97119?v=3","gravatar_id":"","url":"https://api.github.com/users/hixi","html_url":"https://github.com/hixi","followers_url":"https://api.github.com/users/hixi/followers","following_url":"https://api.github.com/users/hixi/following{/other_user}","gists_url":"https://api.github.com/users/hixi/gists{/gist_id}","starred_url":"https://api.github.com/users/hixi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hixi/subscriptions","organizations_url":"https://api.github.com/users/hixi/orgs","repos_url":"https://api.github.com/users/hixi/repos","events_url":"https://api.github.com/users/hixi/events{/privacy}","received_events_url":"https://api.github.com/users/hixi/received_events","type":"User","site_admin":false},"body":"Adds Garmin support.\r\n\r\nReviewed by:\r\n- [ ] @das-g\r\n\r\nPart of geometalab/osmaxx#154\r\n","created_at":"2015-12-10T14:30:23Z","updated_at":"2015-12-11T09:27:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e98ffb833e5f714fa378e9861ba0d3e8b819e41a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63/commits","review_comments_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63/comments","review_comment_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/63/comments","statuses_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/statuses/98af8e7f66515357df362fb16e27c0001648a2ef","head":{"label":"geometalab:feature/garmin","ref":"feature/garmin","sha":"98af8e7f66515357df362fb16e27c0001648a2ef","user":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"repo":{"id":36354077,"name":"osmaxx-postgis-conversion","full_name":"geometalab/osmaxx-postgis-conversion","owner":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geometalab/osmaxx-postgis-conversion","description":"Downloads OSM data, imports it into PostgreSQL, transforms it, exports it into various formats","fork":false,"url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion","forks_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/forks","keys_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/teams","hooks_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/hooks","issue_events_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/events{/number}","events_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/events","assignees_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/assignees{/user}","branches_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/branches{/branch}","tags_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/tags","blobs_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/refs{/sha}","trees_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/statuses/{sha}","languages_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/languages","stargazers_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/stargazers","contributors_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/contributors","subscribers_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/subscribers","subscription_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/subscription","commits_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/commits{/sha}","git_commits_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/commits{/sha}","comments_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/comments{/number}","issue_comment_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/comments{/number}","contents_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/contents/{+path}","compare_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/merges","archive_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/downloads","issues_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues{/number}","pulls_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls{/number}","milestones_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/milestones{/number}","notifications_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/labels{/name}","releases_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/releases{/id}","created_at":"2015-05-27T08:35:02Z","updated_at":"2015-11-13T18:23:20Z","pushed_at":"2015-12-11T08:49:36Z","git_url":"git://github.com/geometalab/osmaxx-postgis-conversion.git","ssh_url":"git@github.com:geometalab/osmaxx-postgis-conversion.git","clone_url":"https://github.com/geometalab/osmaxx-postgis-conversion.git","svn_url":"https://github.com/geometalab/osmaxx-postgis-conversion","homepage":null,"size":31820,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"develop"}},"base":{"label":"geometalab:develop","ref":"develop","sha":"c41aba1cb0fd112de12c8c0540584b7caa651150","user":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"repo":{"id":36354077,"name":"osmaxx-postgis-conversion","full_name":"geometalab/osmaxx-postgis-conversion","owner":{"login":"geometalab","id":8266374,"avatar_url":"https://avatars.githubusercontent.com/u/8266374?v=3","gravatar_id":"","url":"https://api.github.com/users/geometalab","html_url":"https://github.com/geometalab","followers_url":"https://api.github.com/users/geometalab/followers","following_url":"https://api.github.com/users/geometalab/following{/other_user}","gists_url":"https://api.github.com/users/geometalab/gists{/gist_id}","starred_url":"https://api.github.com/users/geometalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geometalab/subscriptions","organizations_url":"https://api.github.com/users/geometalab/orgs","repos_url":"https://api.github.com/users/geometalab/repos","events_url":"https://api.github.com/users/geometalab/events{/privacy}","received_events_url":"https://api.github.com/users/geometalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geometalab/osmaxx-postgis-conversion","description":"Downloads OSM data, imports it into PostgreSQL, transforms it, exports it into various formats","fork":false,"url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion","forks_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/forks","keys_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/teams","hooks_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/hooks","issue_events_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/events{/number}","events_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/events","assignees_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/assignees{/user}","branches_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/branches{/branch}","tags_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/tags","blobs_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/refs{/sha}","trees_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/statuses/{sha}","languages_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/languages","stargazers_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/stargazers","contributors_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/contributors","subscribers_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/subscribers","subscription_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/subscription","commits_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/commits{/sha}","git_commits_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/git/commits{/sha}","comments_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/comments{/number}","issue_comment_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/comments{/number}","contents_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/contents/{+path}","compare_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/merges","archive_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/downloads","issues_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues{/number}","pulls_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls{/number}","milestones_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/milestones{/number}","notifications_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/labels{/name}","releases_url":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/releases{/id}","created_at":"2015-05-27T08:35:02Z","updated_at":"2015-11-13T18:23:20Z","pushed_at":"2015-12-11T08:49:36Z","git_url":"git://github.com/geometalab/osmaxx-postgis-conversion.git","ssh_url":"git@github.com:geometalab/osmaxx-postgis-conversion.git","clone_url":"https://github.com/geometalab/osmaxx-postgis-conversion.git","svn_url":"https://github.com/geometalab/osmaxx-postgis-conversion","homepage":null,"size":31820,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63"},"html":{"href":"https://github.com/geometalab/osmaxx-postgis-conversion/pull/63"},"issue":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/63"},"comments":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/geometalab/osmaxx-postgis-conversion/statuses/98af8e7f66515357df362fb16e27c0001648a2ef"}}}}