mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
7d2b034432
game of all time. Get the right shapes to the right places to score. But be warned: there are only a limited number of islands to build on and longer cables are expensive! Sort wisely to minimize loss. WWW: http://arcticpaint.com/gondola/
27 lines
483 B
Python
27 lines
483 B
Python
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import os.path
|
|
import errno
|
|
|
|
# Program path
|
|
package_dir = os.path.join("%%PROGRAM_DIR%%")
|
|
|
|
# Add package_dir to python path
|
|
sys.path.append(package_dir)
|
|
|
|
# Dotdir to store game configs etc.
|
|
dotdir = os.path.join(os.environ["HOME"], ".gondola")
|
|
|
|
# Create directory
|
|
try:
|
|
os.mkdir(dotdir)
|
|
except OSError, e:
|
|
if e.errno != errno.EEXIST: raise
|
|
|
|
# Chdir into it
|
|
os.chdir(dotdir)
|
|
|
|
# Launch the program!
|
|
execfile(os.path.join(package_dir, "run_game.py"))
|