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:
Cédric Krier
2023-11-04 19:51:52 +01:00
parent 95fae18a2a
commit f25c90e284
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -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'),
-2
View File
@@ -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())