Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dcs_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ def add_common_parser(self, subparser):
rootfs_help = 'Path to customized root filesystem. Keep in mind that this needs to be a valid tbz2 archive.'
subparser.add_argument('--rootfs', help=rootfs_help)

home_path_help = 'Optional. Specify a custom home path. Defaults to the user home directory.'
subparser.add_argument('--home_path', help=home_path_help, default=os.path.expanduser('~'))

def create_parser(self):
"""
Create an ArgumentParser and all its options
Expand Down Expand Up @@ -369,7 +372,7 @@ def init_filesystem(self):
self.config['rootfs_type']
)

self.home = os.path.expanduser('~')
self.home = self.args.home_path
self.dsc_deploy_root = os.path.join(self.home, '.dcs_deploy')
self.download_path = os.path.join(self.dsc_deploy_root, 'download')
self.flash_path = os.path.join(self.dsc_deploy_root, 'flash', config_relative_path)
Expand Down