pydngconverter.compat

PyDNGConverter Compatibility module.

Handles platform-specific operations.

Functions

get_compat_path(path)

Convert given path to a DNGConverter compatible format.

resolve_executable(name_variants[, env_override])

Resolve platform-specific path to given executable.

wine_path(unix_path)

Convert *nix path to Windows path.

Classes

Platform(value)

An enumeration.

class pydngconverter.compat.Platform(value)

Bases: enum.Enum

An enumeration.

DARWIN = 6
LINUX = 4
SOLARIS = 3
UNIX = 2
UNKNOWN = 1
WINDOWS = 5
classmethod get()
Return type

Platform

property is_darwin
Return type

bool

property is_nix
Return type

bool

property is_unknown
Return type

bool

property is_win
Return type

bool

async pydngconverter.compat.get_compat_path(path)

Convert given path to a DNGConverter compatible format.

DNGConverter requires Windows-like paths on *nix environments that utilize wine.

Return type

str

pydngconverter.compat.resolve_executable(name_variants, env_override=None)

Resolve platform-specific path to given executable.

Parameters
  • name_variants (List[str]) – List of executable names to look for.

  • env_override (Optional[str]) – Environment variable name to use as override if available.

Return type

str

Returns

Path to executable and platform-specific command to execute.

async pydngconverter.compat.wine_path(unix_path)

Convert *nix path to Windows path.

Return type

str