hopefully done

This commit is contained in:
2025-08-25 11:18:48 -05:00
committed by Jason Ross
parent a9ed0e70a5
commit 9499d1095e
8 changed files with 335 additions and 340 deletions
+1 -9
View File
@@ -25,17 +25,9 @@ def get_executable_directory() -> str:
return os.path.dirname(os.path.abspath(__file__))
def get_platform_tools_directory() -> str:
"""Get platform-tools directory with executable and AppImage support."""
"""Get platform-tools directory."""
base_dir = get_executable_directory()
# For AppImages running from temporary mounts, use persistent storage
if sys.platform.startswith('linux') and ('tmp' in base_dir and '.mount_' in base_dir):
# AppImage temporary mount - use persistent user directory
home_dir = os.path.expanduser("~")
persistent_dir = os.path.join(home_dir, ".android-file-handler", "platform-tools")
os.makedirs(os.path.dirname(persistent_dir), exist_ok=True)
return persistent_dir
# Check if we're in development mode (running from src/ directory)
if not getattr(sys, 'frozen', False):
# Running as script - check if we're in src/ directory or subdirectory
+1 -1
View File
@@ -1,6 +1,6 @@
"""
Windows Android Browser Module
Provides Android filesystem browsing capabilities for Windows using ADB.
Provides Android filesystem browsing capabilities for Windows and Linux using ADB.
"""
import threading