os.mkdir('html/rules') except Exception: pass def merge_dicts(x, y): ret = x.copy() ret.update(y) return ret pysollib_path = os.path.join(sys.path[0], pysollib_dir) sys.path[0] = os.path.normpath(pysollib_path) # print sys.path fix_gettext() files = [ ('credits.html', 'PySol Credits'), ('ganjifa.html', 'PySol - General Ganjifa Card Rules'), ('general_rules.html', 'PySol - General Rules'), ('glossary.html', 'PySol - Glossary'), ('hanafuda.html', 'PySol - Rules for General Flower Card Rules'), ('hexadeck.html', 'PySol - General Hex A Deck Card Rules'), ('howtoplay.html', 'How to Use PySol'), ('index.html', 'PySol - a Solitaire Game Collection'), ('install.html', 'PySol - Installation'), ('intro.html', 'PySol - Introduction'), ('license.html', 'PySol Software License'), ('news.html', 'PySol - What\'s New?'), ('news_old.html', 'PySol - a Solitaire Game Collection'),
try: os.mkdir('html') except Exception: pass try: os.mkdir('html/rules') except Exception: pass pysollib_path = os.path.join(sys.path[0], pysollib_dir) sys.path[0] = os.path.normpath(pysollib_path) # print sys.path fix_gettext() files = [ ('credits.html', 'PySol Credits'), ('ganjifa.html', 'PySol - General Ganjifa Card Rules'), ('general_rules.html', 'PySol - General Rules'), ('glossary.html', 'PySol - Glossary'), ('hanafuda.html', 'PySol - Rules for General Flower Card Rules'), ('hexadeck.html', 'PySol - General Hex A Deck Card Rules'), ('howtoplay.html', 'How to play PySol'), ('index.html', 'PySol - a Solitaire Game Collection'), ('install.html', 'PySol - Installation'), ('intro.html', 'PySol - Introduction'), ('license.html', 'PySol Software License'), ('news.html', 'PySol - a Solitaire Game Collection'), # ('rules_alternate.html', 'PySol - a Solitaire Game Collection'),