On 08/23/2014 08:05 PM, Dave Lindbergh wrote:
Thanks for the reply!

        First it would be helpful to know what version of Spyder you are
        using?


I'm on Spyder 2.3.0 (for Python 2.7), on Win7 x64.

        1) What does the path box in the upper left of the main window do?

        It doesn't seem to set os.getcwd().  What does it do, then?


    I see a box on the upper right and it is the working directory. If
    you hover the cursor over the box a hint tip should pop up.


Yes, I meant the other left.  It says it's the "working directory".

But if I change it and then type "os.getcwd()", I don't get the same
directory as in the box.

Because the working directory is for new instances of a console. If you have opened a console then change the working directory then any new consoles will honor that, but the existing console will still be linked to the directory it was originally opened with. You can see the directory change if you open the File Explorer.


So that's confusing. What is the difference between the "working
directory" controlled by the box, and the one returned by os.getcwd()?

Explained above.


        More generally, what is the difference between the “working”,
        “global
        working”, “current file”, and “base” directories? (Tools>Prefs>Run,
        Tools>Prefs>__GlobalWorkingDirectory)


    The global working directory is the one you set in the box or in the
    Global Working Directory. It serves as the starting point. There is
    a fuller explanation at the top of the Global Working Directory
    prefs section. The 'current file' directory is whatever directory
    the current file you are working on is in. Not sure what the 'base'
    directory.


OK, so the "current file" directory is the directory the .py file I'm
editing is in, correct?  (That wasn't obvious to me.)

So "working" and "global working" are supposed to be the same thing?  Or
different things?

Yes, as far as I can tell.

The "base" directory is referenced at the bottom of
Tools>Preferences>Global working directory.

It offers to "Change to file base directory".

What is the "base" directory about?  Is that another name for one of the
others, or something different?

Don't know.


I could still use some help understanding the directories, tho.

Honestly I have not paid them much attention and not suffered for it, so I would not spend a whole lot of time worrying about it.


--
Adrian Klaver
[email protected]

--
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.

Reply via email to