{"action":"closed","issue":{"url":"https://api.github.com/repos/adobe-type-tools/afdko/issues/77","repository_url":"https://api.github.com/repos/adobe-type-tools/afdko","labels_url":"https://api.github.com/repos/adobe-type-tools/afdko/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/adobe-type-tools/afdko/issues/77/comments","events_url":"https://api.github.com/repos/adobe-type-tools/afdko/issues/77/events","html_url":"https://github.com/adobe-type-tools/afdko/issues/77","id":112746647,"number":77,"title":"subprocess.call","user":{"login":"typemytype","id":1190358,"avatar_url":"https://avatars.githubusercontent.com/u/1190358?v=3","gravatar_id":"","url":"https://api.github.com/users/typemytype","html_url":"https://github.com/typemytype","followers_url":"https://api.github.com/users/typemytype/followers","following_url":"https://api.github.com/users/typemytype/following{/other_user}","gists_url":"https://api.github.com/users/typemytype/gists{/gist_id}","starred_url":"https://api.github.com/users/typemytype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typemytype/subscriptions","organizations_url":"https://api.github.com/users/typemytype/orgs","repos_url":"https://api.github.com/users/typemytype/repos","events_url":"https://api.github.com/users/typemytype/events{/privacy}","received_events_url":"https://api.github.com/users/typemytype/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-22T07:35:15Z","updated_at":"2016-04-13T17:15:46Z","closed_at":"2016-04-13T17:15:45Z","body":"When embedding FDK inside RoboFont a `subprocess.call` works fine but the stdout and stderr got lost...\r\n\r\nhttps://github.com/adobe-type-tools/afdko/blob/master/FDK/Tools/SharedData/FDKScripts/FDKUtils.py#L83\r\n\r\nHad to change it to `subprocess.Popen` to retrieve stdout and stderr\r\n\r\n```Python\r\npopen = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)\r\npopenout, popenerr = popen.communicate()\r\nif popenout:\r\n\tprint popenout\r\nif popenerr:\r\n\tprint popenerr\r\n```\r\n\r\n(I cannot test this on all kinds of environments)\r\n\r\nthanks"}}