ac-library-rs icon indicating copy to clipboard operation
ac-library-rs copied to clipboard

Executing expand.py from outer dir

Open haruyama480 opened this issue 3 years ago • 3 comments

expand.py could fail when execution from outer directory.

% python3 ${HOME}/src/github.com/rust-lang-ja/ac-library-rs/expand.py segtree
Traceback (most recent call last):
  File "xxxxxxx/src/github.com/rust-lang-ja/ac-library-rs/expand.py", line 99, in <module>
    buf = output_file(i)
  File "xxxxxxx/src/github.com/rust-lang-ja/ac-library-rs/expand.py", line 53, in output_file
    with open(src_path+filename+'.rs', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'src/internal_bit.rs'

It can be solved with reference of argv[0]

haruyama480 avatar Apr 24 '22 07:04 haruyama480

Expanders do not affect language update; triaged as low priority.

TonalidadeHidrica avatar Mar 26 '23 20:03 TonalidadeHidrica

I'm sorry for late response. I fixed conflicts!

haruyama480 avatar Apr 26 '23 10:04 haruyama480

@haruyama480 Thanks for fixing, I'm reviewing when I have a time. By the way did you pushed the last commit 2d270b8 by mistake?

TonalidadeHidrica avatar Apr 26 '23 12:04 TonalidadeHidrica