We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed0368 commit a32e221Copy full SHA for a32e221
seleniumbase/console_scripts/sb_mkrec.py
@@ -106,6 +106,8 @@ def main():
106
error_msg = 'File name cannot start with "-"!'
107
elif "/" in str(file_name) or "\\" in str(file_name):
108
error_msg = "File must be created in the current directory!"
109
+ elif file_name == "abc.py":
110
+ error_msg = '"abc.py" is a reserved Python module! Use another name!'
111
elif os.path.exists(os.getcwd() + "/" + file_name):
112
error_msg = 'File "%s" already exists in this directory!' % file_name
113
if error_msg:
0 commit comments