aboutsummaryrefslogtreecommitdiffstats
path: root/main/halberd/fix-script-include.patch
blob: a4fc3d5bcddf49f6e119ab051921182b3be0b5d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git scripts/halberd scripts/halberd
index cf01b1e..2b5c218 100755
--- scripts/halberd
+++ scripts/halberd
@@ -20,8 +20,9 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

-
-import sys
+import sys, os
+if os.path.dirname(os.path.abspath(sys.argv[0])) == os.path.abspath("scripts"):
+    sys.path.insert(0, "./")

 import Halberd.shell
 import Halberd.logger