aboutsummaryrefslogtreecommitdiff
path: root/games/kimboot/files
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-01-28 17:33:10 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-01-28 17:33:10 +0000
commit4de29a310d36d83694dac1928bec81734e0a44ba (patch)
tree0f5203d86124bfc577df34550e10d1909c5e92ab /games/kimboot/files
parent1bd5efef95698cd7e99eeba4a2b104313d2089af (diff)
downloadports-4de29a310d36d83694dac1928bec81734e0a44ba.tar.gz
ports-4de29a310d36d83694dac1928bec81734e0a44ba.zip
Notes
Diffstat (limited to 'games/kimboot/files')
-rw-r--r--games/kimboot/files/kimboot.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/kimboot/files/kimboot.in b/games/kimboot/files/kimboot.in
new file mode 100644
index 000000000000..e0f0f95bbb1b
--- /dev/null
+++ b/games/kimboot/files/kimboot.in
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+import sys
+import os.path
+
+#Program path
+package_dir = os.path.join("%%PROGRAM_DIR%%")
+
+#Change current work directory
+os.chdir(package_dir)
+
+#Add package_dir to python path
+sys.path.append(package_dir)
+
+#Launch the program!
+execfile(os.path.join(package_dir, "kimboot.py"))