Skip to content

Commit 3b4aab8

Browse files
committed
Update support windows path in _parse_compiler_output
1 parent fc76877 commit 3b4aab8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

solc/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def _parse_compiler_output(stdoutdata):
6969
sources = output['sources']
7070

7171
for source, data in contracts.items():
72+
if("Windows" in platform.system()):
73+
drive_path = source.split(':')[0]
74+
drive_path + ":\\"+source.split(':')[1].replace("\\", "\\\\")
75+
7276
data['abi'] = json.loads(data['abi'])
7377
data['ast'] = sources[source.split(':')[0]]['AST']
7478

0 commit comments

Comments
 (0)