Skip to content

Commit 09ba9a2

Browse files
committed
Update code to support non-html genattrib output file
1 parent 29341d1 commit 09ba9a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

about_code_tool/genattrib.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,17 @@ def main(parser, options, args):
200200
input_path = extract_zip(input_path)
201201

202202
if isdir(output_path):
203-
print('ERROR: <output_path> must be an HTML file, not a directory')
203+
print('ERROR: <output_path> cannot be a directory')
204204
parser.print_help()
205205
sys.exit(errno.EISDIR)
206206

207+
"""
207208
# We only support HTML currently
208209
if not output_path.endswith('.html'):
209210
print('ERROR: <output_path> must be an HTML file.')
210211
parser.print_help()
211212
sys.exit(errno.EINVAL)
213+
"""
212214

213215
if exists(output_path) and not overwrite:
214216
print('ERROR: A file at <output_path> already exists. Select a different file name or use the --overwrite option.')

0 commit comments

Comments
 (0)