oui
This commit is contained in:
parent
c6a08c6d13
commit
8db66d108c
12
V4.py
12
V4.py
@ -83,9 +83,7 @@ webhookSuccess = Webhook.from_url(SuccessLink, adapter=RequestsWebhookAdapter())
|
|||||||
webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter())
|
webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter())
|
||||||
|
|
||||||
|
|
||||||
def resource_path(
|
def resource_path(relative_path): # permet de recuperer l'emplacement de chaque fichier, sur linux et windows
|
||||||
relative_path
|
|
||||||
): # permet de recuperer l'emplacement de chaque fichier, sur linux et windows
|
|
||||||
try:
|
try:
|
||||||
base_path = sys._MEIPASS
|
base_path = sys._MEIPASS
|
||||||
except Exception:
|
except Exception:
|
||||||
@ -120,15 +118,13 @@ def FirefoxPC(Headless=Headless):
|
|||||||
return webdriver.Firefox(options=options)
|
return webdriver.Firefox(options=options)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def printf(txt, end="", Mobdriver=driver):
|
def printf(txt, end="", Mobdriver=driver):
|
||||||
if Log:
|
if Log:
|
||||||
Timer(txt)
|
Timer(txt)
|
||||||
if FullLog and Mobdriver:
|
elif FullLog and Mobdriver:
|
||||||
LogError(txt, Mobdriver=Mobdriver)
|
LogError(txt, Mobdriver=Mobdriver)
|
||||||
|
else :
|
||||||
|
print(txt, Mobdriver)
|
||||||
def CustomSleep(temps):
|
def CustomSleep(temps):
|
||||||
if Log or not IsLinux:
|
if Log or not IsLinux:
|
||||||
c = False
|
c = False
|
||||||
|
Loading…
Reference in New Issue
Block a user