0

working versions, data files, and package metadata

This commit is contained in:
Aaron Griffith
2011-05-13 22:24:49 -04:00
parent e84ef2c1d2
commit 4ec1b4c971
7 changed files with 45 additions and 32 deletions

View File

@@ -32,8 +32,8 @@ def _find_file(filename, mode="rb"):
This searches the following locations in this order:
* the textures_path given in the config file (if present)
* The program dir (same dir as this file)
* The program dir / textures
* The program dir (same dir as overviewer.py)
* The overviewer_core textures dir
* On Darwin, in /Applications/Minecraft
* Inside minecraft.jar, which is looked for at these locations
@@ -53,7 +53,7 @@ def _find_file(filename, mode="rb"):
if os.path.exists(path):
return open(path, mode)
path = os.path.join(programdir, "textures", filename)
path = os.path.join(programdir, "overviewer_core", "data", "textures", filename)
if os.path.exists(path):
return open(path, mode)