From 968d68b2188729a4ed8a4438f0973d7454dc2c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Nuno=20Monteiro?= Date: Thu, 27 Oct 2016 13:24:24 +0200 Subject: [PATCH] startupSnapshot: need to generate python raw strings because of windows paths --- lib/exe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exe.js b/lib/exe.js index b8ae6e2..81244e1 100644 --- a/lib/exe.js +++ b/lib/exe.js @@ -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 )