Bug on local_install.sh if destination directory is not existing
It's a "small" bug on the installation process :
if the path is not existing before running the install, the install is not done in the good destination path :
- if the
~/bin
if not existing :
./tools/local_install.sh ~/bin
Woob local installer
Installing woob applications into ‘/data/woob/bin’.
...
...
Successfully installed Babel-2.13.0 html2text-2020.1.16 lxml-4.9.3 markdown-it-py-3.0.0 mdurl-0.1.2 packaging-23.2 pycountry-22.3.5 pygments-2.16.1 python-dateutil-2.8.2 rich-13.6.0 termcolor-2.3.0 unidecode-1.3.7 woob-3.6
/usr/bin/python3: can't open file '/data/woob/bin/woob': [Errno 20] Not a directory
And the directory ~/bin will not created and the binary ~/bin/woob
will be created as ~/bin
, ... :
file ~/bin
/data/woob/bin: Python script, ASCII text executable
woob@pi:~ $ cat bin
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from woob.launcher import Launcher
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(Launcher.run())
The local_install should verify if destination path is existing and create if needed
The actual workaround is to :
- remove badly created file
rm -f ~/bin
- create the directory
mkdir ~/bin
- re-run the install
./tools/local_install.sh ~/bin