Skip to content

Commit

Permalink
Merge pull request #5 from ajaxboy/master
Browse files Browse the repository at this point in the history
allow php exe to execute spark commands from any directory
  • Loading branch information
seejohnrun committed Nov 30, 2012
2 parents b75b412 + c0c54c4 commit daad308
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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';

Expand Down

0 comments on commit daad308

Please sign in to comment.