Python Forum
[split] running .py files on Windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] running .py files on Windows
#5
(Sep-14-2017, 03:25 PM)nilamo Wrote: I don't think this works in the file explorer and double clicking the file (it's just opened in your editor for... editing).
It work in explorer to,will look at same place in registry \Explorer\FileExts\.py

I think is good to be used like this python hello.py.
Have several version installed use py -version,to mange all version.
C:\1                                                                         
λ py -2.7 version.py                                                         
Hello from 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]

C:\1
λ py -3.4 version.py
Hello from 3.4.2 (v3.4.2:ab2c023a9432, Oct  6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)]

# Main version in Path always python
C:\1
λ python version.py
Hello from 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]
I know that can use shebang(after 3.4) in windows,but i would not use.
It will just confuse people because almost no one use it.
Reply


Messages In This Thread
[split] running .py files on Windows - by metulburr - Sep-14-2017, 02:50 PM
RE: Can't run .py file - Windows 8.1 - by nilamo - Sep-14-2017, 03:25 PM
RE: Can't run .py file - Windows 8.1 - by snippsat - Sep-14-2017, 04:42 PM
RE: Can't run .py file - Windows 8.1 - by nilamo - Sep-14-2017, 05:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Class test : good way to split methods into several files paul18fr 4 597 Jan-30-2024, 11:46 AM
Last Post: Pedroski55
  Rename files in a folder named using windows explorer hitoxman 3 824 Aug-02-2023, 04:08 PM
Last Post: deanhystad
  Python script running under windows over nssm.exe JaroslavZ 0 780 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Phyton Opening files on windows C: pc EddieG 3 1,064 Mar-29-2023, 03:19 PM
Last Post: buran
  Split Bytearray into separate Files by Hex delimter lastyle 5 2,950 Mar-09-2023, 07:49 AM
Last Post: bowlofred
Question Take user input and split files using 7z in python askfriends 2 1,185 Dec-11-2022, 07:39 PM
Last Post: snippsat
  batch file for running python scipt in Windows shell MaartenRo 2 2,009 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  Copying files from a remote Windows station tester_V 11 7,068 Jul-17-2021, 02:19 AM
Last Post: tester_V
  Running script on multiple files Afrodizzyjack 1 2,570 May-14-2021, 10:49 PM
Last Post: Yoriz
  Flask files running order TomasAm 0 1,490 Nov-12-2020, 08:22 AM
Last Post: TomasAm

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020