On this page
  1. genericpath.isdevdrive
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

genericpath.isdevdrive

Prev: genericpath.getsize | Up: genericpath | Next: genericpath.isdir
Rel: genericpath.commonprefix, genericpath.exists, genericpath.getatime, genericpath.getctime
Ref: docs.python.org — genericpath.isdevdrive
Tags: #public #python3 #stdlib #genericpath


Import

import genericpath
from genericpath import isdevdrive

Signature & Overview

genericpath.isdevdrive(path)

Determines whether the specified path is on a Windows Dev Drive.

Usage

import os

# Python 3.12+: True only on Windows Dev Drives (always False on Unix)
if hasattr(os.path, "isdevdrive"):
    assert isinstance(os.path.isdevdrive("."), bool)

Gotchas

REPL Inspect

from genericpath import isdevdrive
help(isdevdrive)

Linked from

Related notes