Skip to content

Support for multiple Python versions simultaneously

Compare
Choose a tag to compare
@JFLarvoire JFLarvoire released this 26 Mar 21:35
· 309 commits to master since this release

Significantly improved pysetup.bat, and the other python management scripts for Windows

pysetup.bat now defaults to configuring the py.exe launcher as the default command for executing Python scripts.
When multiple instances of Python are configured correctly, it's possible to simultaneously run both Python 2.7 and Python 3.x scripts, by typing just their name (without the .py extension) at the command prompt. I'm preparing a blog post explaining how all that should be done, and how to fix common problems. (Spoiler: SysToolsLib's pysetup.bat will fix everything automatically for you!)
pysetup.bat, pip.bat and python.bat now have a common Python instance selection method, with instance #0 the current default. (Preferably py.exe as explained above.) Use option -? to get more information.

Other changes and new tools

  • Renamed lessive.exe as trim.exe. (The French name meant nothing to anybody except for me!)
  • Renamed the Bash directory as Shell, as most of the scripts there are actually generic Posix Shell scripts.
  • Added an mcd function for Linux, alter-ego of the mcd.bat script for Windows. (Create a directory, and enter it, in a single command.)
  • A new -C option in dirc.exe for Windows, displaying the file compression ratio.
  • regx.bat: Added options -se and -ue to easily manage System and User Environment variables.
  • which.exe does not report App Exec Link targets by default anymore, until we know how to reliably use that target with the other link parameters.

Important bug fixes

  • Fixed the -z option in sector.exe, where a regression prevented erasing hard disks.
  • Fixed dirsize which reported 0 on some Unix partitions.

And several other smaller improvements and bug fixes.