aboutsummaryrefslogtreecommitdiffstats
path: root/main/halberd/fix-script-include.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/halberd/fix-script-include.patch')
-rw-r--r--main/halberd/fix-script-include.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/halberd/fix-script-include.patch b/main/halberd/fix-script-include.patch
new file mode 100644
index 0000000000..a4fc3d5bcd
--- /dev/null
+++ b/main/halberd/fix-script-include.patch
@@ -0,0 +1,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