Sep-12-2017, 04:52 PM
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!
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!