Thanks, David,
However, I need to set a named environment variable rather than just add the
path. The Spyder console has an option for adding a new path to the
PYTHONPATH, but I need to do more than that. I expect that somewhere tucked
away in the bowels of the disk drive there is a small file that I need to edit.
DN
On 29/11/2011, at 8:02 PM, David Verelst wrote:
> Hi,
>
> I am not sure how it works on Mac, but to expose a certain path to Python I
> add it to my PYTHONPATH environment variable. I am not sure how your
> different Python installations deal with the PYTHONPATH variable.
>
> You can also add directories to your Python environment directly from a
> script as follows:
>
> from sys import path
>
> path.append('/home/whateveruser/Documents/Python/CHIANTI_7.0_data/')
>
>
> Hope this helps.
>
> Regards,
> David
>
> On 29/11/11 09:22, dcn wrote:
>> I have a package which appears to have installed OK under Spyder. To
>> run, it needs an environment variable set up which I have in
>> my .profile file as
>>
>> export XUVTOP=$HOME/Documents/Python/CHIANTI_7.0_data/
>>
>> If I open the Terminal and type 'env' the variable shows properly.
>>
>> However, when I open Spyder and select iPython, then type 'env'
>>
>> the environment variable does not show. I presume this means Spyder's
>> Python (installed under Macports) is not seeing the .profile file?
>>
>> Where do I add the information so that Spyder will find it?
>>
>> DN
>>
>> (PS I seem to have three Pythons installed, Enthought, Apple and the
>> Macports install. I have deactivated the Enthought one in the OS
>> PATH.)
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "spyder" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/spyderlib?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.