delete the reg key that assciates VisualStudio with .py files

All of our plugin tests were failing on AppVeyor, because executing .py
files was popping up a "How do you want to open this type of file?"
dialog and turning the script into a no-op. Deleting this reg key allows
Python scripts to run with the usual interpreter.
This commit is contained in:
Jack O'Connor 2015-12-21 14:22:41 -05:00
parent 26d1e00daf
commit 1290909d66
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,13 @@ install:
# target Python version and architecture
- "%CMD_IN_ENV% pip install -r requirements-dev.txt"
# Delete a reg key that associates Visual Studio with .py files. Without
# doing this, running a .py file directly will open a "How do you want to
# open this type of file?" window. Since there's nothing on the server to
# click that window, the result is that the script doesn't execute at all.
# See http://help.appveyor.com/discussions/problems/2569-latest-appveyor-build-platform-update-introduced-a-python-problem.
- "reg delete HKEY_CLASSES_ROOT\\.py\\OpenWithProgids /f"
build_script:
# Without this Appveyor complains it can't find a solution file.
- "echo NO-OP"