File: __init__.py

package info (click to toggle)
orange3 3.40.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,912 kB
  • sloc: python: 162,745; ansic: 622; makefile: 322; sh: 93; cpp: 77
file content (14 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from importlib import import_module

from .distmatrix import DistMatrix


def import_late_warning(name):
    try:
        return import_module(name)
    except ImportError:
        class Warn:
            def __getattr__(self, val):
                raise ImportError("Install package '" + name
                                  + "' to use this functionality.")
        return Warn()