From 1290909d6661941a9ccf1ad85a8cf54f19667ce4 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Mon, 21 Dec 2015 14:22:41 -0500 Subject: [PATCH] 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. --- appveyor.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 8d40e8f..010149e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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"