Set up environment variables for spyder launcher

5,752 views
Skip to first unread message

Petrus Hyvönen

unread,
Jun 4, 2013, 2:44:19 AM6/4/13
to winp...@googlegroups.com
Hi,

Is there a way to set up environment variables for the spyder and ipython launchers? I have created scripts that does this as in the 'scripts' directory but windows does not handle these .bat files as well as the .exe file (no icon, not placeable on taskbar etc). 

Is it possible to get these launchers to execute a 'scripts/env.bat' before spyder/ipython?

Many thanks

Pierre Raybaut

unread,
Jun 9, 2013, 5:28:06 AM6/9/13
to winp...@googlegroups.com
Hi,

Currently it's not possible (using scripts is the only way).

But in the next releases (2.7.5.1, 3.3.2.1), the user will be able to override PATH, PYTHONPATH and PYTHONSTARTUP environment variables using the new "winpython.ini" settings file (located in "settings" directory):

Cheers,
-Pierre


2013/6/4 Petrus Hyvönen <petrus....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "WinPython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to winpython+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Petrus Hyvönen

unread,
Jun 9, 2013, 12:26:34 PM6/9/13
to winp...@googlegroups.com
Hi,

Thanks for the update.

If possible I would appriciate to be able to set other environment variables as well. For example, I am using some integration of java libraries (through the JCC python wrapper) and needs to set some paths for it. Today I do that stuff in a special start script, but then some of the advanages of the launchers disappear (like being able to put them in the taskbar). To keep it portable between machines I keep away from the system environment variables.

Many thanks for the great work btw..
/Petrus

Pierre Raybaut

unread,
Jun 10, 2013, 5:14:18 PM6/10/13
to winp...@googlegroups.com
That is done:

So you will be able to define as many environment variables as you want...!

-Pierre


2013/6/9 Petrus Hyvönen <petrus....@gmail.com>

Petrus Hyvönen

unread,
Jun 11, 2013, 10:27:37 PM6/11/13
to winp...@googlegroups.com
Many Thanks!

Petrus Hyvönen

unread,
Jun 16, 2013, 8:27:24 AM6/16/13
to winp...@googlegroups.com
Hi,

I started to try to configure my setup using the new winpython.ini feature. I got some question, mainly related to how these path's are evaluated.
- How do I append to an existing environment variable (like PATH)? 
- Can I access the previous %WINPYDIR% variable to setup path relative to current folder?

Best Regards
/Petrus

Damir

unread,
Jan 20, 2014, 4:56:04 AM1/20/14
to winp...@googlegroups.com
PATH in winpython.ini replaces system environment variable PATH.
I also wonder:
- Is it possible to append PATH from winpython.ini to existing environment variable PATH?
Reply all
Reply to author
Forward
0 new messages