Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Question: Is using 'python.exe' still portable? #893

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

Closed
LeonT-A opened this issue Oct 19, 2020 · 2 comments
Closed

Question: Is using 'python.exe' still portable? #893

LeonT-A opened this issue Oct 19, 2020 · 2 comments
Labels
Procedure Procedure

Comments

@LeonT-A
Copy link

LeonT-A commented Oct 19, 2020

Hello, as someone who runs most of their apps portable, I'm excited to find a portable version of python that I can carry with me. It's going to allow me to use my scripts everywhere I go, without having to compile them before-hand. I do have one question though...

From a normal cmd prompt, is it safe to pass my scripts to WPy64-3850\python-3.8.5.amd64\python.exe, or must I use WPy64-3850\WinPython Interpreter.exe in order to get all the portable features?

I don't want to leave anything behind on the host, however if you pass a .py file to WinPython Interpreter.exe, a terminal window will remain open after the script is run, which quickly adds up.

I know that with the PortableApps platform, not using the correct .exe will effectively void the portable traits of the app. The portable .exe adds various environment variables and configurations so that the underlying program becomes portable. I'm curious if it's the same case here.

Version: Winpython64-3.8.5.0dot.exe

@LeonT-A
Copy link
Author

LeonT-A commented Oct 19, 2020

I noticed that WinPython Interpreter.exe calls winpython.bat before launching python.exe.

I appended an extra line to the .bat with exit and it gives me the desired results, no terminal left open after exiting python. That said, the original question still stands.

@stonebig
Copy link
Contributor

stonebig commented Oct 31, 2020

hi @LeonT-A,

WinPython is:

Yet nowodays:

  • you can install the free VisualStudio yourself, if you need to compile cython programs,
  • you can play with environment variables in %HOME%\winpython.ini to make it more portable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Procedure Procedure
Projects
None yet
Development

No branches or pull requests

2 participants