Might help if I at least /try/ to include all the theme specific css files.

This commit is contained in:
Stephen Boddy 2016-12-12 22:53:46 +01:00
parent 2546e724c9
commit e0d3fdcd9d
1 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,7 @@ from terminatorlib.version import APP_NAME, APP_VERSION
PO_DIR = 'po' PO_DIR = 'po'
MO_DIR = os.path.join('build', 'mo') MO_DIR = os.path.join('build', 'mo')
CSS_DIR = os.path.join('terminatorlib', 'themes')
class TerminatorDist(Distribution): class TerminatorDist(Distribution):
global_options = Distribution.global_options + [ global_options = Distribution.global_options + [
@ -131,6 +132,7 @@ class Uninstall(Command):
class InstallData(install_data): class InstallData(install_data):
def run (self): def run (self):
self.data_files.extend (self._find_css_files ())
self.data_files.extend (self._find_mo_files ()) self.data_files.extend (self._find_mo_files ())
install_data.run (self) install_data.run (self)
if not self.distribution.without_icon_cache: if not self.distribution.without_icon_cache:
@ -155,6 +157,17 @@ class InstallData(install_data):
return data_files return data_files
def _find_css_files (self):
data_files = []
for css_dir in glob.glob (os.path.join (CSS_DIR, '*')):
srce = os.path.join(css_dir, 'gtk-3.0', 'apps', '*.css')
dest = os.path.join('share', 'terminator', css_dir, 'gtk-3.0', 'apps')
data_files.append((dest, srce))
return data_files
class Test(Command): class Test(Command):
user_options = [] user_options = []
def initialize_options(self): def initialize_options(self):