pydngconverter.compat¶
PyDNGConverter Compatibility module.
Handles platform-specific operations.
Functions
|
Convert given path to a DNGConverter compatible format. |
|
Resolve platform-specific path to given executable. |
|
Convert *nix path to Windows path. |
Classes
|
An enumeration. |
-
class
pydngconverter.compat.
Platform
(value)¶ Bases:
enum.Enum
An enumeration.
-
DARWIN
= 6¶
-
LINUX
= 4¶
-
SOLARIS
= 3¶
-
UNIX
= 2¶
-
UNKNOWN
= 1¶
-
WINDOWS
= 5¶
-
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.