Skip to content

Commit

Permalink
improved variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Roberts committed Nov 14, 2022
1 parent 2d19e8d commit c5ce8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/python/tools/dataset_initialize_scenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
# into a code repository. Note that we handle the "scenes" dir in a special case later in
# this file.
if args.dataset_dir_to_copy is not None:
dataset_dir_copy_global_whitelist = ["_dataset_config.py", "_vray_user_params.py"]
dataset_dir_copy_global_allow_list = ["_dataset_config.py", "_vray_user_params.py"]
dataset_dir_to_copy_contents = sort(glob.glob(os.path.join(args.dataset_dir_to_copy, "*")))
for c in dataset_dir_to_copy_contents:
if os.path.basename(c) in dataset_dir_copy_global_whitelist:
if os.path.basename(c) in dataset_dir_copy_global_allow_list:
if os.path.isfile(c):
print("[HYPERSIM: DATASET_INITIALIZE_SCENES] Copying " + c + "...")
shutil.copy(c, args.dataset_dir)
Expand Down

0 comments on commit c5ce8a0

Please sign in to comment.