From c0ff9852afa3acc9d212d9865b3360cfea780cfc Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 19 Apr 2013 22:12:02 -0700 Subject: [PATCH] Move Arcanist machine config location on Windows Test Plan: $ set # on Windows Reviewers: epriestley, dschleimer Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5733 --- src/workflow/ArcanistBaseWorkflow.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index d42e7521..3732a73e 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -1165,11 +1165,9 @@ abstract class ArcanistBaseWorkflow extends Phobject { public static function getSystemArcConfigLocation() { if (phutil_is_windows()) { - // this is a horrible place to put this, but there doesn't seem to be a - // non-horrible place on Windows return Filesystem::resolvePath( 'Phabricator/Arcanist/config', - getenv('PROGRAMFILES')); + getenv('ProgramData')); } else { return '/etc/arcconfig'; }