Add Scribd PDF Downloader under Scribd/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
5d2933ea95
28 files changed
+2159
No files matched your search
@@ -0,0 +1,17 @@
|
||||
"""PyInstaller runtime hook — configure paths when running as a frozen app."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def _app_dir() -> str:
|
||||
if getattr(sys, "frozen", False):
|
||||
return os.path.dirname(sys.executable)
|
||||
return os.getcwd()
|
||||
|
||||
|
||||
if getattr(sys, "frozen", False):
|
||||
os.chdir(_app_dir())
|
||||
os.environ.setdefault("PLAYWRIGHT_BROWSERS_PATH", "0")
|
||||
Reference in new issue
Block a user