We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcf08a5 commit 0126043Copy full SHA for 0126043
black_ops_mod_tools_installer.py
@@ -144,7 +144,10 @@ def print_complete_message():
144
145
146
def open_game():
147
- black_ops_path = f'{script_dir}/{process_name}'
+ black_ops_path = os.path.normpath(f'{script_dir}/{process_name}')
148
+ if not os.path.isfile(black_ops_path):
149
+ missing_exe_error = f'No black ops exe was found at the following location: "{black_ops_path}"'
150
+ raise FileNotFoundError(missing_exe_error)
151
subprocess.run(black_ops_path)
152
time.sleep(45)
153
0 commit comments