1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-27 21:19:51 -05:00

Move transform_defaults and fix config inference again

This commit is contained in:
Jack Foltz 2018-12-09 11:13:26 -05:00
parent e3bb3f31de
commit 01592e44fa
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -21,7 +21,9 @@ class Package:
self.name = obj self.name = obj
# Transform and infer attributes # Transform and infer attributes
self.update_from_files() self.transform_default('config', '.config/' + self.name, 'lain/')
self.transform_default('script', self.name + '.fish', 'scripts/')
self.transform_default('userunit', self.name + '.service', 'lain/.config/systemd/user/')
# Install State # Install State
self.enabled = True self.enabled = True
@ -64,11 +66,6 @@ class Package:
else: else:
self[prop] = None self[prop] = None
def update_from_files(self):
self.transform_default('config', self.name, 'lain/')
self.transform_default('script', self.name + '.fish', 'scripts/')
self.transform_default('userunit', self.name + '.service', 'lain/.config/systemd/user/')
@staticmethod @staticmethod
def config_menu(screen, title, packages): def config_menu(screen, title, packages):
items = [] items = []