소스 검색

bug fix: cli arguments source

Steve Nyemba 4 년 전
부모
커밋
d3416631bb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      bin/transport

+ 2 - 1
bin/transport

@@ -84,7 +84,8 @@ class ETL (Process):
 			print (e)
 if __name__ == '__main__' :
 	_info = json.loads(open (SYS_ARGS['config']).read())
-	
+	if 'source' in SYS_ARGS :
+		_info['source'] = {"type":"disk.DiskReader","args":{"path":SYS_ARGS['source'],"delimiter":","}}
 	
 	for _config in _info :
 		_config['jobs']  = 10 if 'jobs' not in SYS_ARGS else SYS_ARGS['jobs']