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:
parent
e3bb3f31de
commit
01592e44fa
@ -21,7 +21,9 @@ class Package:
|
||||
self.name = obj
|
||||
|
||||
# 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
|
||||
self.enabled = True
|
||||
@ -64,11 +66,6 @@ class Package:
|
||||
else:
|
||||
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
|
||||
def config_menu(screen, title, packages):
|
||||
items = []
|
||||
|
Loading…
Reference in New Issue
Block a user