diff options
Diffstat (limited to 'games/funnyboat/files/funnyboat_.in')
-rw-r--r-- | games/funnyboat/files/funnyboat_.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/games/funnyboat/files/funnyboat_.in b/games/funnyboat/files/funnyboat_.in new file mode 100644 index 000000000000..647c03a8c75e --- /dev/null +++ b/games/funnyboat/files/funnyboat_.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, "main.py")) |