Python Forum
Python 3.x Windows 7 registry file associations broken
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3.x Windows 7 registry file associations broken
#1
Hi,

I deleted some windows registry keys dealing with the python file associations.
I thought then reinstalling the python setup will fix it back up. But it doesn't!

now here is my situation:

I had two Python version installed: Anacondas Python 2.x and lately python 3.5.
I wanted to drag and drop some files from the explorer onto my python script and use the files as args to be processed.
I had the situation that if I type 'python' in the command line, it started the latest Python 3.5 interpreter. But if I drag and dropped files on a .py file, it started with the other Python 2.x version.

my first thought was to change the file association:
I used the rightclick open file with... and chose the python3.5.exe. but now the ability to drag and drop files on the py files is gone.
I've also found the "solution" that I have to adjust the registry and add %* to the open command in the registry. eventually I messed things up and thought to delete the reg entries.
it's pretty confusing and I can't find anywhere which entries are required.

how can I make a clean python install to restore a default windows installation including all required registry keys and defuslt file associations?

thanks anyone for your input!
Reply


Messages In This Thread
Python 3.x Windows 7 registry file associations broken - by pixhellmann - Sep-12-2017, 04:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to add Python folder in Windows Registry ? Touktouk 1 298 Feb-20-2024, 01:04 PM
Last Post: DeaD_EyE
  Read complete windows registry? fredep57 3 964 Mar-15-2023, 08:14 PM
Last Post: buran
  Why is copying and pasting a block now broken? WagmoreBarkless 2 1,425 May-05-2022, 05:01 AM
Last Post: WagmoreBarkless
  Why is copying and pasting a block now broken? WagmoreBarkless 1 1,254 May-04-2022, 11:40 PM
Last Post: Larz60+
  batch file for running python scipt in Windows shell MaartenRo 2 1,915 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,426 May-06-2021, 05:39 AM
Last Post: throwaway34
  How to add new registry key shlomi27 3 10,357 Feb-04-2021, 05:45 PM
Last Post: reidnax
  Using a .bat file to execute simple anaconda commands in Windows 10 gacg1 0 4,705 Nov-30-2020, 03:24 PM
Last Post: gacg1
  Python broken if moved to a different folder ecastrotns 3 2,481 Oct-26-2020, 10:53 PM
Last Post: ecastrotns
  STT: recognition connection failed: [Errno 32] Broken pipe GrahamBerends 0 5,105 Jul-18-2020, 11:00 PM
Last Post: GrahamBerends

Forum Jump:

User Panel Messages

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