Skip to content

Commit 6123e6a

Browse files
committed
Add comment on dangerous operation
1 parent f83f859 commit 6123e6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tests/imagej/bioformats/write_bf_memoryfile

tests/imagej/bioformats/write_bf_memoryfile/test_01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
filename = "10x_phmax.czi"
1010
full_path = parent_dir + "/" + "10x_phmax.czi"
1111
bfmemofilename = "." + filename + ".bfmemo"
12-
os.chdir(parent_dir)
12+
os.chdir(parent_dir) # DANGEROUS, relative paths and calling remove() below!
1313
if os.path.isfile(bfmemofilename):
1414
print("bf memo file already existed and was removed")
1515
os.remove(bfmemofilename)

0 commit comments

Comments
 (0)