Home > python, windows > Anaconda3, Windows, command-line arguments

Anaconda3, Windows, command-line arguments

Problem
I installed Anaconda3 on Windows 7, but when I wanted to pass a command-line argument to a script, the script didn’t receive the parameter(s). The command-line arguments were simply ignored.

Solution
I found the solution here. This is a blog post from 2010. This issue is still unresolved…

In short: open the registry editor (regedit), find the key HKEY_CLASSES_ROOT\py_auto_file\shell\open\command , and append the string “%*” (without quotes) to the end of the entry. It should look similar to this:

"C:\Anaconda3\python.exe" "%1" %*
Categories: python, windows Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment