From: Jakub Vrana Date: Sat, 20 Apr 2013 05:12:02 +0000 (-0700) Subject: Move Arcanist machine config location on Windows X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c0ff9852afa3acc9d212d9865b3360cfea780cfc;p=arcanist.git 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 --- 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'; }