Skip to content

Commit a5404d5

Browse files
committed
Switch from relative path to absolute path in html extractor
1 parent 8ac48c5 commit a5404d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/extract/src/html/extract-regexps-html.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import subprocess
1111
import json
1212
import tempfile
13+
import os
1314

1415
def extract_js(file_path):
1516
with open(file_path) as fp:
@@ -22,7 +23,7 @@ def extract_js(file_path):
2223
return js_from_html
2324

2425
def extract_regexes(json_tempfile):
25-
output = subprocess.run(['./extract-regexes.pl', json_tempfile.name],
26+
output = subprocess.run([os.path.join(os.getcwd(), 'extract-regexes.pl'), json_tempfile.name],
2627
capture_output=True, text=True)
2728
return json.loads(output.stdout)
2829

src/extract/test/html/t.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</script>
1010

1111
<script>
12-
var re = /abcsd/;
12+
var re = /abcsdxxx/;
1313
</script>
1414

1515
</header>

0 commit comments

Comments
 (0)