diff --git a/README.md b/README.md index aa1992d..e7a62c8 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,12 @@ from boa.compiler import Compiler Compiler.load_and_save('path/to/your/file.py') ``` +Or navigate into `boa` directory and use the command: + +``` +cli.py path/to/your/file.py +``` + For legacy functionality without NEP8 stack isolation compatibility, use the following: ``` diff --git a/boa/code/module.py b/boa/code/module.py index 8b8176c..cd46761 100644 --- a/boa/code/module.py +++ b/boa/code/module.py @@ -471,7 +471,7 @@ def export_abi_json(self, output_path): avm_name = os.path.splitext(os.path.basename(output_path))[0] abi_info = self.generate_abi_json(avm_name, file_hash) - abi_json_filename = os.path.basename(output_path.replace('.avm', '.abi.json')) + abi_json_filename = output_path.replace('.avm', '.abi.json') with open(abi_json_filename, 'w+') as out_file: out_file.write(abi_info)