Fixed the contribManager in windows binaries
This commit is contained in:
@@ -18,6 +18,7 @@ import re
|
|||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
# incantation to be able to import overviewer_core
|
# incantation to be able to import overviewer_core
|
||||||
|
if not hasattr(sys, "frozen"):
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
||||||
|
|
||||||
from overviewer_core import world
|
from overviewer_core import world
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import os
|
|||||||
import cPickle
|
import cPickle
|
||||||
|
|
||||||
# incantation to be able to import overviewer_core
|
# incantation to be able to import overviewer_core
|
||||||
|
if not hasattr(sys, "frozen"):
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
||||||
|
|
||||||
from overviewer_core import nbt
|
from overviewer_core import nbt
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Very basic player.dat inspection script
|
|||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
# incantation to be able to import overviewer_core
|
# incantation to be able to import overviewer_core
|
||||||
|
if not hasattr(sys, "frozen"):
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
||||||
|
|
||||||
from overviewer_core.nbt import load
|
from overviewer_core.nbt import load
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import sys,os
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
# incantation to be able to import overviewer_core
|
# incantation to be able to import overviewer_core
|
||||||
|
if not hasattr(sys, "frozen"):
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
||||||
|
|
||||||
from overviewer_core import nbt
|
from overviewer_core import nbt
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# incantation to be able to import overviewer_core
|
# incantation to be able to import overviewer_core
|
||||||
|
if not hasattr(sys, "frozen"):
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
|
||||||
|
|
||||||
from overviewer_core import nbt
|
from overviewer_core import nbt
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import os.path
|
|||||||
import ast
|
import ast
|
||||||
|
|
||||||
# incantation to be able to import overviewer_core
|
# incantation to be able to import overviewer_core
|
||||||
|
if not hasattr(sys, "frozen"):
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '.')))
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0], '.')))
|
||||||
|
|
||||||
from overviewer_core import nbt
|
from overviewer_core import nbt
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -105,7 +105,7 @@ if py2exe is not None:
|
|||||||
b = 3
|
b = 3
|
||||||
else:
|
else:
|
||||||
b = 1
|
b = 1
|
||||||
setup_kwargs['options']['py2exe'] = {'bundle_files' : b, 'excludes': 'Tkinter'}
|
setup_kwargs['options']['py2exe'] = {'bundle_files' : b, 'excludes': 'Tkinter', 'includes':['fileinput', 'overviewer_core.items']}
|
||||||
|
|
||||||
#
|
#
|
||||||
# py2app options
|
# py2app options
|
||||||
|
|||||||
Reference in New Issue
Block a user