Expand $(Variable) per expansions dict. See MsvsSettings.GetVSMacroEnv for the canonical way to retrieve a suitable dict.
(string, expansions)
| 1088 | |
| 1089 | |
| 1090 | def ExpandMacros(string, expansions): |
| 1091 | """Expand $(Variable) per expansions dict. See MsvsSettings.GetVSMacroEnv |
| 1092 | for the canonical way to retrieve a suitable dict.""" |
| 1093 | if "$" in string: |
| 1094 | for old, new in expansions.items(): |
| 1095 | assert "$(" not in new, new |
| 1096 | string = string.replace(old, new) |
| 1097 | return string |
| 1098 | |
| 1099 | |
| 1100 | def _ExtractImportantEnvironment(output_of_set): |
no test coverage detected