Skip to content

Commit

Permalink
[fix] Typos and flags in OPy
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy C committed Nov 23, 2021
1 parent 7a6df44 commit 6878c30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opy/build.sh
Expand Up @@ -79,7 +79,7 @@ compile-manifest() {
log " $full_src_path"

# Save space by omitting docstring.
$py $THIS_DIR/../bin/opyc compile -emit-docstring=0 $full_src_path $dest
$py $THIS_DIR/../bin/opyc compile --emit-docstring=0 $full_src_path $dest

local rel_py_path=${rel_dest_path%.pyc}.py # .pyc -> py

Expand Down
2 changes: 1 addition & 1 deletion opy/opy_main.py
Expand Up @@ -441,7 +441,7 @@ def OpyCommandMain(argv):
arg_r = args.Reader(argv)
opt = args.Parse(compile_spec, arg_r)
py_path = arg_r.ReadRequired('Expected path to Python input')
out_path = arg.ReadRequired('Expected output path')
out_path = arg_r.ReadRequired('Expected output path')

# Compile to Python bytecode (TODO: remove ovm_codegen.py)
mode = 'exec'
Expand Down
2 changes: 1 addition & 1 deletion test/opyc.sh
Expand Up @@ -45,7 +45,7 @@ parse() {

compile() {
bin/opyc compile $FILE _tmp/opyc-compile-1
bin/opyc compile -emit-docstring=0 $FILE _tmp/opyc-compile-2
bin/opyc compile --emit-docstring=0 $FILE _tmp/opyc-compile-2
ls -l _tmp/opyc-compile-*
}

Expand Down

0 comments on commit 6878c30

Please sign in to comment.