New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to set startup directory in IDLE #72961
Comments
In my Python courses, Windows users frequently ask about how to set a startup directory so they can run from their Desktop or a custom directory. The usual answer is to create a short-cut and then alter the properties on that shortcut. However, other programs they are used to will allow the startup directory to be specified from within the program (in our case, the preferences menu). Also, we should change the default directory from C:\\Python27 which is almost never the right place. A documents directory would be more appropriate. |
I agree. I have had in mind (but cannot find an issue) to change the default to a user's home directory, as the best general default. But even that is not really the proper place that many would want. I can adapt and reuse the code used to browse and validate custom help files. |
Terry, if you're open to it, I would like to have one of our new aspiring core developers work on this patch under your direction. Nofar Schnider has expressed an interest. |
Raymond: yes, I am definitely open to collaboration on this issue. The timing is good as I just started, a month ago, expanding configure dialog testing beyond the trivial one of creating an instance without raising. Real tests are needed preparation for making other changes, including adding other new options in 3.6+. I would like to include this one in 3.6.1, 4 to 6 months from now. Doing so may require more information about IDLE on *nix and Mac than I currently have. Which of those have you run IDLE on? Or helped people with in your classes? Nofar: welcome. I have two immediate questions. 1) Which OS do you primarily work with? (I am using Win 10.) Can you test on anything else? 2) Are you only interested in this issue, or might you be open to working on other issues if this one is successful? Idlelib is not an easy codebase to get into. The +-60 modules are listed in README.txt. There is also a mapping from menu items to implementation code. However, the README does not cover the addition of a new option. I will write and upload a design document or roadmap for this one. |
Thanks Terry. Just let me know where to start! |
This is partially a duplicate of bpo-22121, but that focused most on the default startup directory on Windows. |
Hi Nofar are you still interested on working on this request? |
The rule for whether to switch to the configured directory might be On windows, this is true when starting in the console with |
In half-duplicate issue #106786, Raymond wrote
Currently on Windows, the IDLE startup directory is now the directory of the python binary that is running IDLE. This may or may not be 'hidden', depending on the install location. But it is still not useful for most people. On macOS, it is now the user's Documents directory. Regardless, the startup directory affects the initial directory for Open and for pure Shell sessions that did not start running code from the editor. (When restarting from an edited file, the initial directory is the file's directory, and that must not change.) I checked a folder on my desktop with Windows Explorer. When it said |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: