Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster/dagster/utils/__init__.py
Show All 11 Lines | |||||
from collections import namedtuple | from collections import namedtuple | ||||
from enum import Enum | from enum import Enum | ||||
import yaml | import yaml | ||||
from six.moves import configparser | from six.moves import configparser | ||||
from dagster import check | from dagster import check | ||||
from dagster.core.errors import DagsterInvariantViolationError | from dagster.core.errors import DagsterInvariantViolationError | ||||
from dagster.seven import IS_WINDOWS, thread | from dagster.seven import IS_WINDOWS, Path, thread | ||||
from dagster.seven.abc import Mapping | from dagster.seven.abc import Mapping | ||||
from .subprocess_pdb import ForkedPdb | from .subprocess_pdb import ForkedPdb | ||||
from .yaml_utils import load_yaml_from_glob_list, load_yaml_from_globs, load_yaml_from_path | from .yaml_utils import load_yaml_from_glob_list, load_yaml_from_globs, load_yaml_from_path | ||||
if sys.version_info > (3,): | |||||
from pathlib import Path # pylint: disable=import-error | |||||
else: | |||||
from pathlib2 import Path # pylint: disable=import-error | |||||
PICKLE_PROTOCOL = 2 | PICKLE_PROTOCOL = 2 | ||||
DEFAULT_REPOSITORY_YAML_FILENAME = 'repository.yaml' | DEFAULT_REPOSITORY_YAML_FILENAME = 'repository.yaml' | ||||
def file_relative_path(dunderfile, relative_path): | def file_relative_path(dunderfile, relative_path): | ||||
''' | ''' | ||||
▲ Show 20 Lines • Show All 289 Lines • Show Last 20 Lines |