Do not copy tryton data and plugins in frozen build
Since d94c92c1de67 the library is no more compressed so those package data are already in the usual place.
This commit is contained in:
@@ -23,8 +23,6 @@ except IOError:
|
||||
|
||||
|
||||
include_files = [
|
||||
(os.path.join('tryton', 'data'), 'data'),
|
||||
(os.path.join('tryton', 'plugins'), 'plugins'),
|
||||
(os.path.join(sys.prefix, 'share', 'glib-2.0', 'schemas'),
|
||||
os.path.join('share', 'glib-2.0', 'schemas')),
|
||||
(os.path.join(sys.prefix, 'lib', 'gtk-3.0'),
|
||||
|
||||
@@ -219,8 +219,6 @@ class ConfigManager(object):
|
||||
|
||||
CONFIG = ConfigManager()
|
||||
CURRENT_DIR = os.path.dirname(__file__)
|
||||
if hasattr(sys, 'frozen'):
|
||||
CURRENT_DIR = os.path.dirname(sys.executable)
|
||||
if not isinstance(CURRENT_DIR, str):
|
||||
CURRENT_DIR = str(CURRENT_DIR, sys.getfilesystemencoding())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user