Hi Clas, Are you running Linux, and if yes, which distribution are you on? If you are running Linux and you set the environment variables manually in a console (when sourcing the doflin.conf file) these variables only live inside that terminal. When you launch Spyder using an application launcher these environment variables are not visible (because it got its own brand new console in the background). So the most simple solution would be to source your Fenics environment variables in a console and launch from that same console spyder from the command line (should be just the command "spyder", but without the quotes). Note that this is not a Spyder problem, but this is related to how environment variables work under Linux.
Other possible solutions are: * create a launch script that first sources doflin.conf and then launches Spyder * set the Fenics environment variables system wide and across reboots, add it to your /etc/environment or /etc/profile.d (depending on your distro, see for instance Ubuntu <https://help.ubuntu.com/community/EnvironmentVariables> or Arch <https://wiki.archlinux.org/index.php/Environment_Variables>) Best regards, David On 28 May 2014 02:45, Clas Jacobson <[email protected]> wrote: > I am running Fenics. To set the environmental variables I source > dolfin.conf. I can then run the scripts just fine. > > When I launch Spyder from the Applications directory none of the > environmental variables are inherited. I source the dolfin.conf file inside > Spyder - still nothing is there - so the various paths are not found. > > What is the trick with Spyder to get environmental variables to stick? > > -- > You received this message because you are subscribed to the Google Groups > "spyder" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/spyderlib. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/d/optout.
