Permalink
Browse files

Allow running Diviner on Windows

Summary: Also print error if libphutil is not found.

Test Plan: Ran it on Windows twice.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D6504
  • Loading branch information...
1 parent c3736dd commit 226730ff8332fcf6b373378e119e6fa5b2130409 @vrana vrana committed Jul 24, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/__init_script__.php
@@ -1,8 +1,9 @@
<?php
$include_path = ini_get('include_path');
-ini_set('include_path', $include_path.':'.dirname(__FILE__).'/../../');
-@require_once 'libphutil/src/__phutil_library_init__.php';
+$include_path .= PATH_SEPARATOR.dirname(__FILE__).'/../../';
+ini_set('include_path', $include_path);
+@include_once 'libphutil/src/__phutil_library_init__.php';
if (!@constant('__LIBPHUTIL__')) {
echo "ERROR: Unable to load libphutil. Update your PHP 'include_path' to ".
"include the parent directory of libphutil/.\n";

0 comments on commit 226730f

Please sign in to comment.