mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-11 15:32:13 +00:00
fix: use site to get site-packages
This commit is contained in:
@@ -169,12 +169,15 @@ class DeployConfig(ConfigModel):
|
||||
|
||||
@cached_property
|
||||
def python(self) -> str:
|
||||
exe = self.filepath(self.PythonExecutable)
|
||||
if os.path.exists(exe):
|
||||
return exe
|
||||
# No need to read PythonExecutable
|
||||
# since you run this code with python, current python is the python
|
||||
|
||||
# exe = self.filepath(self.PythonExecutable)
|
||||
# if os.path.exists(exe):
|
||||
# return exe
|
||||
|
||||
current = sys.executable.replace("\\", "/")
|
||||
logger.warning(f'PythonExecutable: {exe} does not exist, use current python instead: {current}')
|
||||
# logger.warning(f'PythonExecutable: {exe} does not exist, use current python instead: {current}')
|
||||
return current
|
||||
|
||||
@cached_property
|
||||
|
||||
Reference in New Issue
Block a user