mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 01:40:21 +08:00
get lib path from env
This commit is contained in:
parent
213602b37a
commit
f8a1471dc4
@ -3,9 +3,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
nodriver_path = Path(".venv/lib/python3.11/site-packages/nodriver/cdp/network.py")
|
||||
env_path = os.getenv("VIRTUAL_ENV")
|
||||
if env_path is None:
|
||||
env_path = Path(os.__file__).parent.parent.parent.as_posix()
|
||||
nodriver_path = Path(env_path + "/lib/python3.11/site-packages/nodriver/cdp/network.py")
|
||||
|
||||
|
||||
new_cookie_partition_key = """\
|
||||
|
Loading…
x
Reference in New Issue
Block a user