Open plboily opened 6 years ago
Hi,
Just don't specify a command - this opens an interactive shell:
from rez.resolved_context import ResolvedContext r = ResolvedContext(["python-2.7.5"]) p = r.execute_shell()
I'm not sure why your example isn't working though - it is for me, and it opens a new terminal window (Ubuntu-16.04).
Thx A
On Sat, Sep 29, 2018 at 1:18 AM, plboily notifications@github.com wrote:
Hi, im doing something like this in python:
from rez.resolved_context import ResolvedContext r = ResolvedContext(["python-2.7.5"]) p = r.execute_shell(command='gnome-terminal')
Then normally with this command, a shell open with this in the prompt: [username@machinename lastfolder]$ But with this command, this is what im having:
Thats it, nothing else. Any hint? i check my profile in the .bashrc, loading specific profile with argument and im still having only this as input. Maybe im doing this wrong? I just want to open a terminal with the rez-env already configured.
Thanks for your help. Pl
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nerdvegas/rez/issues/530, or mute the thread https://github.com/notifications/unsubscribe-auth/ABjqSsUOFMMgVTljxXi_3YIoj6lA9iSqks5ufj3VgaJpZM4W-tqc .
Hi, Probably the difference is how you run the script. Im runing the python script inside a pyQt4 UI. so to start the terminal its a button in the pyQt UI. So it need open a new application and this is where im not having the same info as you.
Hi, to simplify the problem, if im doing a sh file (let say: launch_terminal.sh) with this inside:
#!/bin/bash
rez-env python-2.7.5 -- gnome-terminal
Then i execute ./launch_terminal.sh
i'm having exactly the same problem, my shell dont have a location path.
Hi,
What do you mean by my shell dont have a location path
specifically?
Also in your first email, is there missing output? It seems like you meant to paste something that is not there perhaps.
Thx A
On Wed, Oct 10, 2018 at 7:01 AM, plboily notifications@github.com wrote:
Hi, to simplify the problem, if im doing a sh file (let say: launch_terminal.sh) with this inside:
!/bin/bash
rez-env python-2.7.5 -- gnome-terminal
Then i execute ./launch_terminal.sh
i'm having exactly the same problem, my shell dont have a location path.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nerdvegas/rez/issues/530#issuecomment-428330891, or mute the thread https://github.com/notifications/unsubscribe-auth/ABjqSjH3gqYGq9a16wnDBa53QRlZ8s_Zks5ujQCwgaJpZM4W-tqc .
The location path i mean the Template path in a terminal, normaly you have this:
[username@machinename lastfolder]$
(all depends your terminal template)
snapshot example -> https://ibb.co/jE7Kw9
But when im running launch_terminal.sh (example above), im having only that:
>
snapshot example -> https://ibb.co/dnPcip
Hi, im doing something like this in python:
Then normally with this command, a shell open with this in the prompt:
But with this command, this is what im having:
Thats it, nothing else. Any hint? i check my profile in the .bashrc, loading specific profile with argument and im still having only this as input. Maybe im doing this wrong? I just want to open a terminal with the rez-env already configured.
Thanks for your help. Pl