{"action":"created","issue":{"url":"https://api.github.com/repos/Jwata/sushi_detector_dataset/issues/1","repository_url":"https://api.github.com/repos/Jwata/sushi_detector_dataset","labels_url":"https://api.github.com/repos/Jwata/sushi_detector_dataset/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Jwata/sushi_detector_dataset/issues/1/comments","events_url":"https://api.github.com/repos/Jwata/sushi_detector_dataset/issues/1/events","html_url":"https://github.com/Jwata/sushi_detector_dataset/issues/1","id":294803996,"number":1,"title":".sh files to .py","user":{"login":"AboHadi313","id":34236108,"avatar_url":"https://avatars0.githubusercontent.com/u/34236108?v=4","gravatar_id":"","url":"https://api.github.com/users/AboHadi313","html_url":"https://github.com/AboHadi313","followers_url":"https://api.github.com/users/AboHadi313/followers","following_url":"https://api.github.com/users/AboHadi313/following{/other_user}","gists_url":"https://api.github.com/users/AboHadi313/gists{/gist_id}","starred_url":"https://api.github.com/users/AboHadi313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AboHadi313/subscriptions","organizations_url":"https://api.github.com/users/AboHadi313/orgs","repos_url":"https://api.github.com/users/AboHadi313/repos","events_url":"https://api.github.com/users/AboHadi313/events{/privacy}","received_events_url":"https://api.github.com/users/AboHadi313/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-06T15:36:38Z","updated_at":"2018-02-06T15:52:44Z","closed_at":null,"author_association":"NONE","body":"Hello brother\r\nI am new to python and these kind of things\r\nI don't want to run the .sh files, because I don't know how to deal with them (on windows)\\\r\nSo, I want to convert them to a .py file\r\n\r\nWhat I did actually is this:\r\n```\r\nimport os\r\n\r\nprint(os.getcwd())\r\n\r\nos.chdir('dist')\r\nprint(os.getcwd())\r\n\r\nos.chdir('object_detection-0.1')\r\nprint(os.getcwd())\r\nexec(open(\"setup.py\").read())\r\n\r\nos.chdir('../slim-0.1')\r\nprint(os.getcwd())\r\nexec(open(\"setup.py\").read())\r\n```\r\n\r\nThis will run the setup.py but it won't give it the command \"install\" as in:\r\npython setup.py install\r\n\r\nalso, I want to put this line in a .py file so it will run directly with the above code:\r\n\r\npython train.py --logtostderr --train_dir=training/ --pipeline_config_path=./ssd_mobilenet_v1_pets.config\r\n\r\nhere too, the problem is with the \"--\" and what come after it ..\r\nCan you help me sir ? hint ? documentation ?\r\nBecause I think that I am asking Google the wrong question that's why I didn't find the answer !"},"comment":{"url":"https://api.github.com/repos/Jwata/sushi_detector_dataset/issues/comments/363466036","html_url":"https://github.com/Jwata/sushi_detector_dataset/issues/1#issuecomment-363466036","issue_url":"https://api.github.com/repos/Jwata/sushi_detector_dataset/issues/1","id":363466036,"user":{"login":"AboHadi313","id":34236108,"avatar_url":"https://avatars0.githubusercontent.com/u/34236108?v=4","gravatar_id":"","url":"https://api.github.com/users/AboHadi313","html_url":"https://github.com/AboHadi313","followers_url":"https://api.github.com/users/AboHadi313/followers","following_url":"https://api.github.com/users/AboHadi313/following{/other_user}","gists_url":"https://api.github.com/users/AboHadi313/gists{/gist_id}","starred_url":"https://api.github.com/users/AboHadi313/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AboHadi313/subscriptions","organizations_url":"https://api.github.com/users/AboHadi313/orgs","repos_url":"https://api.github.com/users/AboHadi313/repos","events_url":"https://api.github.com/users/AboHadi313/events{/privacy}","received_events_url":"https://api.github.com/users/AboHadi313/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T15:52:44Z","updated_at":"2018-02-06T15:52:44Z","author_association":"NONE","body":"It is not a pro code, but it will do the job\r\nThis is for anyone whos facing the same issue:\r\n\r\n```\r\nimport os\r\nprocess = os.popen('python Test.py')\r\npreprocessed = process.read()\r\nprocess.close()\r\n```\r\n\r\nthis will do the job, althogh using `subprocess.Popen` is better."}}
{"actor":{"display_login":"AboHadi313"}}