32 lines
922 B
Python
32 lines
922 B
Python
import src.batch.bio_sales.create_bio_sales_lot as create_bio_sales_lot
|
|
import src.batch.common.batch_context as batch_context
|
|
|
|
# context = batch_context.BatchContext.get_instance().is_ultmarc_imported = True
|
|
context = batch_context.BatchContext.get_instance().is_not_business_day = False
|
|
|
|
# import gzip
|
|
# import os
|
|
# import tarfile
|
|
|
|
|
|
# def main():
|
|
|
|
# gzname = '/Users/shimoda.m/Downloads/bio_slip_data_20230612204112.gz'
|
|
# ret = []
|
|
# with tarfile.open(gzname, 'r') as tar:
|
|
# temp_dir = os.path.dirname(gzname)
|
|
# tar.extractall(path=temp_dir)
|
|
# extracted_files = tar.getnames()
|
|
# for extracted_file in extracted_files:
|
|
# file = os.path.join(temp_dir, extracted_file)
|
|
# ret.append(file)
|
|
# return ret
|
|
|
|
|
|
if __name__ == '__main__':
|
|
# main()
|
|
create_bio_sales_lot.exec()
|
|
|
|
|
|
# tar -zxvf '/Users/shimoda.m/Downloads/bio_slip_data_20230612204112-1.gz'
|