Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105526

Re: Obtain the variable in bash.

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Obtain the variable in bash.
Date 2016-03-23 19:45 +1100
Message-ID <mailman.39.1458722711.2244.python-list@python.org> (permalink)
References <nctfkg$kt7$1@aspen.stu.neva.ru> <mailman.32.1458717548.2244.python-list@python.org> <nctkgu$p7s$1@aspen.stu.neva.ru>

Show all headers | View raw


On Wed, Mar 23, 2016 at 7:35 PM, Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>> My guess is that you started the IDEs from your GUI in some way (the
>> Applications menu or something). If that's the case, they'll inherit
>> their environment from your GUI. You _may_ be able to have them "notice"
>> your change to .bashrc by logging out and in again, or rebooting; it
>> depends how your system is configured.
>
> I tried and find that I must set the variable in .profile file, instead
> of .bashrc, in order to let the IDEs started from my GUI to recognize
> them after I logged out and in again.

Yep, that would do it! Sometimes your GUI will be started from an
interactive shell (or one that thinks it's interactive), in which case
.bashrc will be processed, but in your case, .profile is the solution.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Obtain the variable in bash. Hongyi Zhao <hongyi.zhao@gmail.com> - 2016-03-23 07:12 +0000
  Re: Obtain the variable in bash. Chris Angelico <rosuav@gmail.com> - 2016-03-23 18:19 +1100
    Re: Obtain the variable in bash. Hongyi Zhao <hongyi.zhao@gmail.com> - 2016-03-23 08:35 +0000
      Re: Obtain the variable in bash. Chris Angelico <rosuav@gmail.com> - 2016-03-23 19:45 +1100
  Re: Obtain the variable in bash. Ben Finney <ben+python@benfinney.id.au> - 2016-03-23 19:08 +1100

csiph-web