aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/python.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/python.js')
-rw-r--r--lib/compilers/python.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/compilers/python.js b/lib/compilers/python.js
index 085e5a193..c1e9836f9 100644
--- a/lib/compilers/python.js
+++ b/lib/compilers/python.js
@@ -34,6 +34,8 @@ export class PythonCompiler extends BaseCompiler {
super(compilerInfo, env);
this.compiler.demangler = null;
this.demanglerClass = null;
+ this.disasmScriptPath =
+ this.compilerProps('disasmScript') || resolvePathFromAppRoot('etc', 'scripts', 'dis_all.py');
}
// eslint-disable-next-line no-unused-vars
@@ -66,15 +68,9 @@ export class PythonCompiler extends BaseCompiler {
return {asm: bytecodeResult};
}
- getDisasmScriptPath() {
- const script = this.compilerProps('disasmScript');
-
- return script || resolvePathFromAppRoot('etc', 'scripts', 'dis_all.py');
- }
-
optionsForFilter(filters, outputFilename) {
return ['-I',
- this.getDisasmScriptPath(),
+ this.disasmScriptPath,
'--outputfile',
outputFilename,
'--inputfile'];