question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Winpython *.bat launchers change the current working directory after exiting

See original GitHub issue

Summary

In the make.py script, most *.bat launchers are set to contain the line cd/D "%WINPYWORKDIR%" or a similar cd/D ... line. This causes an unexpected change in the current working directory when accessing these launchers from the command prompt. Issue #384 details this unexpected behaviour for python.bat, I raise this issue to be applicable for all *.bat launchers.

Example

bd284f08-3ec4-11e6-83a1-3050d685908d

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
stonebigcommented, Oct 17, 2016

winidlex.bat = called by the icon, change directory idlex.bat = called directly, doesn’t change directory

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to change default directory for WinPython ...
To change the default start directory I modified cmd.bat instead: @echo off call "%~dp0env_for_icons.bat" cmd.exe /k cd /d d:\python.
Read more >
BAT file to open cmd prompt, change directory and execute ...
I need to open one command prompt window on windows 10, change directory to a specific folder on that same cmd window and...
Read more >
How to Change the Working Directory in Python - Linux Hint
The first thing to do is to set the new path to the working directory. On Ubuntu, this is very straightforward!
Read more >
7.28.0 PDF - IPython Documentation
Notable changes are the following: • Exit non-zero when ipython is given a file path to run that doesn't exist PR #12074.
Read more >
IPython Documentation | Manualzz
Set the kernel's working directory to the notebook directory when running ... making it possible to replace existing templates with your own files....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found