From 2f7ff20219f621588623001e30b31e3113f48c3c Mon Sep 17 00:00:00 2001 From: brianl Date: Mon, 26 Feb 2007 08:50:40 +0000 Subject: [PATCH] - fixed a problem when freecell solver is not present git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@142 efabe8c0-fbe8-4139-b769-b5e6d273206e --- setup_osx.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup_osx.py b/setup_osx.py index 0b5eb30e..5a3b5fde 100644 --- a/setup_osx.py +++ b/setup_osx.py @@ -40,9 +40,10 @@ finally: # Use Freecell Solver, if it is installed. # http://fc-solve.berlios.de/ SOLVER_LIB_PATH = "/usr/local/lib/libfreecell-solver.0.dylib" -SOLVER = "/usr/local/bin/fc-solve" +SOLVER = ["/usr/local/bin/fc-solve"] if not os.path.exists(SOLVER_LIB_PATH): - SOLVER_LIB_PATH = SOLVER = "" + SOLVER_LIB_PATH = None + SOLVER = [] GETINFO_STRING = "PySol Fan Club Edition \ %s %s, (C) 1998-2003 Markus F.X.J Oberhumer \ @@ -60,9 +61,9 @@ PLIST = dict( ) APP = ['pysol.py'] ICON_FILE = 'data/PySol.icns' -DATA_FILES = ['docs', 'data', 'scripts','COPYING', 'README', SOLVER] +DATA_FILES = ['docs', 'data', 'scripts','COPYING', 'README'] + SOLVER RESOURCES = [os.path.join(TCL_EXTENSION_PATH, TILE)] if TILE else [] -FRAMEWORKS = [SOLVER_LIB_PATH] +FRAMEWORKS = [SOLVER_LIB_PATH] if SOLVER_LIB_PATH else [] OPTIONS = dict(argv_emulation=True, plist=PLIST, iconfile=ICON_FILE,