1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-23 05:50:54 +01:00

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
This commit is contained in:
Jakub Vrana 2013-04-19 22:12:02 -07:00
parent 07fba2a49b
commit c0ff9852af

View file

@ -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';
}