Load the config file from path
(confpath, profile)
| 161 | |
| 162 | |
| 163 | def load_options(confpath, profile): |
| 164 | """Load the config file from path""" |
| 165 | # create the fake args (bypass docopt) |
| 166 | args = _fake_args() |
| 167 | args['--cfg'] = confpath |
| 168 | args['--profile'] = profile |
| 169 | args['--verbose'] = True |
| 170 | # and get the options |
| 171 | opt = Options(args=args) |
| 172 | opt.profile = profile |
| 173 | opt.dry = False |
| 174 | opt.safe = False |
| 175 | opt.install_diff = True |
| 176 | opt.import_link = LinkTypes.NOLINK |
| 177 | opt.install_showdiff = True |
| 178 | opt.debug = True |
| 179 | opt.dotpath = os.path.join(os.path.dirname(confpath), 'dotfiles') |
| 180 | return opt |
| 181 | |
| 182 | |
| 183 | def get_path_strip_version(path): |