Set exe name before using it

This commit is contained in:
jdholtz 2023-08-16 08:09:01 -05:00
parent 25877fd95a
commit 9102a51636
No known key found for this signature in database
GPG Key ID: A3A87CFD1E4A1B65
1 changed files with 3 additions and 2 deletions

View File

@ -62,6 +62,9 @@ class Patcher(object):
prefix = "undetected"
self.user_multi_procs = user_multi_procs
# Needs to be called before self.exe_name is accessed
self._set_platform_name()
if not os.path.exists(self.data_path):
os.makedirs(self.data_path, exist_ok=True)
@ -97,8 +100,6 @@ class Patcher(object):
self.version_main = version_main
self.version_full = None
self._set_platform_name()
def _set_platform_name(self):
"""
Set the platform and exe name based on the platform undetected_chromedriver is running on