startupSnapshot: need to generate python raw strings because of windows

paths
This commit is contained in:
António Nuno Monteiro
2016-10-27 13:24:24 +02:00
parent 5136d3ebe9
commit 968d68b218
+1 -1
View File
@@ -683,7 +683,7 @@ function _monkeyPatchConfigure(compiler, complete, options) {
function(content, next) {
next(null, content.replace(
"def configure_v8(o):",
`def configure_v8(o):\n o['variables']['embed_script'] = '${snapshotPath}'\n o['variables']['warmup_script'] = '${snapshotPath}'`));
`def configure_v8(o):\n o['variables']['embed_script'] = r'${snapshotPath}'\n o['variables']['warmup_script'] = r'${snapshotPath}'`));
},
complete
)