From b0276e3677c73376e6fd3f27f770ca493cf1bef4 Mon Sep 17 00:00:00 2001
From: = <=>
Date: Wed, 12 Mar 2014 15:40:21 +0000
Subject: [PATCH] dynamic path

---
 cron/busmapDaemon.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cron/busmapDaemon.php b/cron/busmapDaemon.php
index 9ac939d..5549809 100755
--- a/cron/busmapDaemon.php
+++ b/cron/busmapDaemon.php
@@ -7,7 +7,7 @@
 */
 // Wait this many seconds between loops
 $sleep = 5;
-$app_dir = "/home/anton/www/busmap.ant.sr/";
+$app_dir = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
 
 error_reporting(E_ALL);
 require_once "System/Daemon.php";
-- 
GitLab