Debian Codegraph @

envisage/examples/_etsdemo_info.py

raw ◀ ▶
1 Debian patch touch this file
1 # (C) Copyright 2007-2025 Enthought, Inc., Austin, TX
2 # All rights reserved.
3 #
4 # This software is provided without warranty under the terms of the BSD
5 # license included in LICENSE.txt and may be redistributed only under
6 # the conditions described in the aforementioned license. The license
7 # is also available online at http://www.enthought.com/licenses/BSD.txt
8 #
9 # Thanks for using Enthought open source!
10
•11 """This module provides functions to be advertised in the distribution
12 entry points.
13 """
14
•15 try:
16 from importlib.resources import files
17 except ImportError:
18 from importlib_resources import files
19
20
21 def info(request):
22 """Return a configuration for contributing examples to the
23 Demo application.
24 Parameters
25 ----------
26 request : dict
27 Information provided by the demo application.
28 Currently this is a placeholder.
29 Returns
30 -------
31 response : dict
32 """
33 return dict(
34 version=1,
35 name="Envisage Examples",
•36 root=str(files("envisage.examples").joinpath("demo")),
37 )