Permalink
Browse files

Allow php exe to execute spark commands from any directory

(used this instead)
  • Loading branch information...
1 parent b75b412 commit c0c54c4f2f5a3d891dd8201a9a013568fbf22454 @ajaxboy ajaxboy committed Nov 29, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 spark
View
4 spark
@@ -1,6 +1,10 @@
#!/usr/bin/env php
<?php
+// main working directory
+define ( 'SPARK_DIR', dirname (__FILE__) );
+@chdir(SPARK_DIR);
+
require_once 'lib/spark/spark_source.php';
require_once 'lib/spark/spark_cli.php';

0 comments on commit c0c54c4

Please sign in to comment.