Proposed changes check the version of solc at runtime using subprocess.check_output of solc --version, parsing the response with a regex to find the version number. The user's installed version is then used as the pragma at the top of output_solidity_code. If the regex fails to find a version number for some reason, it defaults to 0.4.13.
Proposed changes check the version of solc at runtime using
subprocess.check_output
ofsolc --version
, parsing the response with a regex to find the version number. The user's installed version is then used as the pragma at the top ofoutput_solidity_code
. If the regex fails to find a version number for some reason, it defaults to0.4.13
.