Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Get full path to basecfg much earlier
Browse files Browse the repository at this point in the history
Move the path expansion for the kernel configuration file to the
load_config() function.

Signed-off-by: Major Hayden <[email protected]>
  • Loading branch information
major committed May 14, 2018
1 parent a7009aa commit 31d36f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions skt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,7 @@ class kbuilder(object):
def __init__(self, path, basecfg, cfgtype=None, makeopts=None,
enable_debuginfo=False):
self.path = path
# FIXME Move expansion up the call stack, as this limits the class
# usefulness, because tilde is a valid path character.
self.basecfg = os.path.expanduser(basecfg)
self.basecfg = basecfg
self.cfgtype = cfgtype if cfgtype is not None else "olddefconfig"
self._ready = 0
self.makeopts = None
Expand Down
2 changes: 2 additions & 0 deletions skt/executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,8 @@ def load_config(args):
# Get absolute paths for files and directories
if cfg.get('workdir'):
cfg['workdir'] = full_path(cfg.get('workdir'))
if cfg.get('basecfg'):
cfg['basecfg'] = full_path(cfg.get('basecfg'))

return cfg

Expand Down

0 comments on commit 31d36f8

Please sign in to comment.