File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 18
18
)
19
19
20
20
import semantic_version
21
-
21
+ import platform
22
22
23
23
VERSION_DEV_DATE_MANGLER_RE = re .compile (r'(\d{4})\.0?(\d{1,2})\.0?(\d{1,2})' )
24
24
strip_zeroes_from_month_and_day = functools .partial (VERSION_DEV_DATE_MANGLER_RE .sub ,
@@ -69,12 +69,14 @@ def _parse_compiler_output(stdoutdata):
69
69
sources = output ['sources' ]
70
70
71
71
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
-
76
72
data ['abi' ] = json .loads (data ['abi' ])
77
- data ['ast' ] = sources [source .split (':' )[0 ]]['AST' ]
73
+
74
+ if ("Windows" in platform .system ()):
75
+ split_source = source .split (':' )
76
+ windows_path = split_source [0 ] + ":" + split_source [1 ]
77
+ data ['ast' ] = sources [windows_path ]['AST' ]
78
+ else :
79
+ data ['ast' ] = sources [source .split (':' )[0 ]]['AST' ]
78
80
79
81
return contracts
80
82
You can’t perform that action at this time.
0 commit comments