Got it! Here’s a clean, step-by-step way to install your scripts so they work globally on Ubuntu using pipx (safe and isolated):
sudo apt install pipx
pipx ensurepath
Close and reopen your terminal, or run
source ~/.bashrcto update PATH.
pipx uninstall script
This clears any previous installations of your project.
Go to your project folder:
cd ~/atari-monk/atari-monk/project/script
pipx install .
This creates an isolated environment and installs all
[project.scripts](myinfo,log,fstree, etc.) into~/.local/bin.
~/.local/bin is in your PATHCheck:
echo $PATH | tr ':' '\n' | grep '.local/bin'
~/.bashrc:export PATH="$HOME/.local/bin:$PATH"
Then reload:
source ~/.bashrc
myinfo
log
fstree
They should now work from any terminal, both VS Code and normal Ubuntu terminal.
✅ Optional tip: If you have conflicts with system commands (like zip), consider renaming your script in pyproject.toml so pipx doesn’t clash.
cd ~/atari-monk/atari-monk/project/script
pipx install --force .
Dependencies must be stated in toml, for example
dependencies = [
"pyperclip"
]
and reinstall
If you want, I can also write a one-liner that does steps 2–4 automatically, cleaning old installs and making all scripts globally available.
Do you want me to do that?