Update patcher.py

Fixed running multiple instances issue
This commit is contained in:
Maylo23 2023-05-29 20:02:57 +01:00 committed by GitHub
parent d29b3e300f
commit 4fb9cc40df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
# this module is part of undetected_chromedriver # this module is part of undetected_chromedriver
from distutils.version import LooseVersion from distutils.version import LooseVersion
import secrets
import io import io
import logging import logging
import os import os
@ -69,7 +70,7 @@ class Patcher(object):
""" """
self.force = force self.force = force
self._custom_exe_path = False self._custom_exe_path = False
prefix = "undetected" prefix = secrets.token_hex(8) #fixes running multiple instanes at once
self.user_multi_procs = user_multi_procs self.user_multi_procs = user_multi_procs
if not os.path.exists(self.data_path): if not os.path.exists(self.data_path):