Skip to content

Commit a938026

Browse files
committed
Avoid creating '.' paths in BDT
1 parent 18ffc0a commit a938026

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/bdt_builder.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ def main():
9292
str_path = str_path[:-1]
9393
if len(str_path) > 1 and str_path[1] == ':':
9494
str_path = str_path[2:]
95+
if str_path == '.':
96+
str_path = ''
9597
if not str_path:
9698
str_path = '/'
9799
f.write('{0}\r\n'.format(str_path))
@@ -278,6 +280,8 @@ def scan_dir(input_dir, str_prefix, str_detection):
278280
str_dir = str_dir.replace('\\', '/')
279281
if str_dir[0] == '/':
280282
str_dir = str_dir[1:]
283+
if str_dir == '.':
284+
str_dir = ''
281285
zxfile = zxfile.replace('\\', '/')
282286
arr_tmp = [zxname, zxmode, str_dir, zxfile]
283287
break

0 commit comments

Comments
 (0)