I was not sure about it and it does not surprise me as the original purpose of the '-w' option was to set the global working directory in Spyder's IDE (i.e. not in light mode). Maybe I'll make it work for the light mode as well in the next release, this may be convenient.
Now, you have other options to change the current working directory when running Spyder in light mode: 1. If you are on an UNIX platform, you are probably running Spyder in light mode with: $ spyder -l or: $ spyder --light In this case, the current working directory will be the directory from which you have executed Spyder. 2. On Windows platforms, you are probably running Spyder in light mode from the Python(x,y) Home panel, then the current working directory is probably C:\Python26\Scripts or C:\Python26\Lib\site-packages\xy, or something like that. It makes me realize that the Windows installer does not install a shortcut for Spyder Light mode in Windows start menu... (maybe it could be useful?) so you may create one (get inspiration from the "Reset Spyder settings to defaults" shortcut which run the spyder script with the option --reset that you may replace by --light) and then set the shortcut working directory as you like. 3. On all platforms, you may change the working directory in a startup script (PYTHONSTARTUP): import os.chdir(my_working_directory) HTH, Pierre On Dec 3, 12:06 am, Jonno <[email protected]> wrote: > On Thu, Dec 2, 2010 at 2:37 PM, Pierre Raybaut <[email protected]> > wrote: > > See this page of the documentation: > >http://packages.python.org/spyder/options.html > > > In theory, the -w option should do the trick. > > > Pierre > > The -w option doesn't seem to work with the light option. Is there a > config file I can set it in? -- 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.
