On Thu, Dec 1, 2011 at 4:21 PM, Jeff Forcier <[email protected]> wrote: > On Thu, Dec 1, 2011 at 5:37 AM, Lars van der bijl > <[email protected]> wrote: >> as fabric is running as a sub process from the shell you initiated it >> from I don't think you can influence it's parent. >> I did sped some time looking this up for pyhton and couldn't find a >> way to do it. >> but maybe there are some clever clogs here who know how. > > Unfortunately, to my knowledge you're correct -- subprocesses spawned > from a shell are unable to influence the invoking session. This is the > same for anything -- Python, a bash script, etc. > > The only good way I've ever found to "do something useful and update > the current shell env" is to *source* shell scripts via the shell's > "source" function, which cannot be done in Python (the whole point is > for the shell to interpret a shell script "inline", and last I > checked, Bash or Zsh could not interpret Python natively.) > That is what I was afraid of. So I guess that tiny .sh script is staying in the repo.
_______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
