mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 22:47:22 +08:00
Opt: Use absolute ADB path
- AzurLaneUncensored failed to push when using relative path
This commit is contained in:
@@ -116,6 +116,7 @@ class Connection:
|
|||||||
# Try existing adb.exe
|
# Try existing adb.exe
|
||||||
for file in self.adb_binary_list:
|
for file in self.adb_binary_list:
|
||||||
if os.path.exists(file):
|
if os.path.exists(file):
|
||||||
|
file = os.path.abspath(file).replace('\\', '/')
|
||||||
logger.attr('Adb_binary', file)
|
logger.attr('Adb_binary', file)
|
||||||
self._adb_binary = file
|
self._adb_binary = file
|
||||||
return file
|
return file
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
import numpy as np
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from module.base.mask import Mask
|
from module.base.mask import Mask
|
||||||
@@ -50,6 +49,7 @@ def handle_sensitive_text(text):
|
|||||||
str:
|
str:
|
||||||
"""
|
"""
|
||||||
text = re.sub('File \"(.*?)AzurLaneAutoScript', 'File \"C:\\\\fakepath\\\\AzurLaneAutoScript', text)
|
text = re.sub('File \"(.*?)AzurLaneAutoScript', 'File \"C:\\\\fakepath\\\\AzurLaneAutoScript', text)
|
||||||
|
text = re.sub('\[Adb_binary\] (.*?)AzurLaneAutoScript', '[Adb_binary] C:\\\\fakepath\\\\AzurLaneAutoScript', text)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user