mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-11 05:45:23 +01:00
Set git_dir/sys_dir/cache_dir statically
This allows accessing their values without requiring a class instance.
This commit is contained in:
parent
938d919503
commit
693d01dc1b
3 changed files with 15 additions and 10 deletions
7
sysb.py
7
sysb.py
|
|
@ -12,9 +12,10 @@ class SysB(SysGeneral):
|
|||
"""
|
||||
Class responsible for preparing sources for System B.
|
||||
"""
|
||||
|
||||
git_dir = os.path.dirname(os.path.join(__file__))
|
||||
sys_dir = os.path.join(git_dir, 'sysb')
|
||||
|
||||
def __init__(self, arch, preserve_tmp):
|
||||
self.git_dir = os.path.dirname(os.path.join(__file__))
|
||||
self.arch = arch
|
||||
self.preserve_tmp = preserve_tmp
|
||||
|
||||
self.sys_dir = os.path.join(self.git_dir, 'sysb')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue