• Re: PSA: A python script to clone your phone exactly, over Wi-Fi or USB

    From Lawrence D?Oliveiro@3:633/10 to All on Friday, August 21, 2026 22:32:25
    On Wed, 19 Aug 2026 22:33:27 -0800, Maria Sophia wrote:

    CUSTOM_ADB_PATH = r"C:\app\editor\android\scrcpy\adb.exe"

    By the way, I think Python lets you write ?/? instead of ?\?, which
    saves trouble with r-strings.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Keith Thompson@3:633/10 to All on Friday, August 21, 2026 19:11:29
    Lawrence D?Oliveiro <ldo@nz.invalid> writes:
    On Wed, 19 Aug 2026 22:33:27 -0800, Maria Sophia wrote:
    CUSTOM_ADB_PATH = r"C:\app\editor\android\scrcpy\adb.exe"

    By the way, I think Python lets you write ?/? instead of ?\?, which
    saves trouble with r-strings.

    File paths are interpreted by the OS. If an open() call succeeds
    with "C:/app/editor/android/scrcpy/adb.exe", I don't think that has
    anything to do with Python (other than Python not going out of its
    way to make it fail).

    See also the pathlib module.

    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    void Void(void) { Void(); } /* The recursive call of the void */

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)