Hi all
I have some problems when connecting to servers using uopy, as the PATH variable is wrong.
From the terminal console:
>SH -c "echo $PATH"
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/uv/bin
>SH -c "uv -version"
UniVerse 14.1.0
When using uopy:
cmd = uopy.Command()
suffix = "
"
cmd.command_text = 'SH -c "echo $PATH"'
cmd.run()
print(f'{cmd.command_text} = {cmd.response.removesuffix(suffix)}')
cmd.command_text = 'SH -c "uv -version"'
cmd.run()
print(f'{cmd.command_text} = {cmd.response.removesuffix(suffix)}')
The output is:
SH -c "echo $PATH" = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SH -c "uv -version" = SH: line 1: uv: command not found
What's the issue with the uopy connection having an incomplete PATH value?