Skip to content
Snippets Groups Projects
Commit 8fa1dd2c authored by Recolic Keghart's avatar Recolic Keghart
Browse files

disable another functionality

parent 1549b551
No related branches found
No related tags found
No related merge requests found
library_path = 'test/大牧人标准图库2020-1-8【单件库】'
library_path = 'test/libs'
working_dir = ''
allow_part_tree_reference = False
allow_part_recursive_reference = False # Not supported YET!
allow_part_recursive_reference = False # Supported but disabled.
tmp_prefix = '_python_tmp_prefix_'
file_encoding = 'gb2312'
......
......@@ -62,7 +62,8 @@ def _main():
serial, product_id, product_name, quantity = line[0], line[1], line[2], line[3]
print('[{}]Adding product {} {}({}) ...'.format(serial, quantity, product_name, product_id))
add_product(serial, product_id, product_name, quantity, must_have_xlsx=True) # first-level recursive is enabled
add_product(serial, product_id, product_name, quantity, must_have_xlsx=config.allow_part_tree_reference) # first-level recursive is enabled. Update: controlled by config, should never switched on.
_magic_merge_missing_parts()
with open(output_prefix + '.csv', 'w+') as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment