Skip to content

Commit

Permalink
Removed cfg dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dwest77a committed Feb 6, 2024
1 parent a676f8f commit 69ed170
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pipeline/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,13 @@ def scan_config(args):
else:
logger.error(f'cfg file missing or not provided - {cfg_file}')
return None

args.workdir = get_attribute('WORKDIR', args, 'workdir')
args.groupdir = get_attribute('GROUPDIR', args, 'groupdir')

proj_code = cfg['proj_code']
workdir = cfg['workdir']
proj_dir = cfg['proj_dir']
logger.debug(f'Extracted attributes: {proj_code}, {workdir}, {proj_dir}')
proj_code = args.proj_code
proj_dir = f'{args.workdir}/in_progress/{proj_code}'
logger.debug(f'Extracted attributes: {proj_code}, {args.workdir}, {proj_dir}')

filelist = f'{proj_dir}/allfiles.txt'

Expand Down

0 comments on commit 69ed170

Please sign in to comment.