forked from plotly/plotly.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.py
More file actions
27 lines (22 loc) · 1.04 KB
/
resources.py
File metadata and controls
27 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
This module defines where non-python source files are located.
All paths are relative to sys.prefix. This is why they are in a plotly-specific
'plotly-data' directory.
"""
import os
# This is relative to `sys.prefix`. We store non-python files here.
DATA_DIR = 'plotly-data'
# For graph object definitions and local error handling
GRAPH_REFERENCE_DIR = os.path.join(DATA_DIR, 'graph_reference')
GRAPH_REFERENCE_GRAPH_OBJS_META = 'plotly/graph_reference/graph_objs_meta.json'
GRAPH_REFERENCE_KEY_TO_NAME = 'plotly/graph_reference/KEY_TO_NAME.json'
GRAPH_REFERENCE_NAME_TO_KEY = 'plotly/graph_reference/NAME_TO_KEY.json'
GRAPH_REFERENCE_OBJ_MAP = 'plotly/graph_reference/OBJ_MAP.json'
GRAPH_REFERENCE_FILES = [GRAPH_REFERENCE_GRAPH_OBJS_META,
GRAPH_REFERENCE_KEY_TO_NAME,
GRAPH_REFERENCE_NAME_TO_KEY,
GRAPH_REFERENCE_OBJ_MAP]
# For IPython widget support
WIDGETS_DIR = os.path.join(DATA_DIR, 'widgets')
WIDGETS_MAIN_JS = 'plotly/widgets/graphWidget.js'
WIDGETS_FILES = [WIDGETS_MAIN_JS]