22Orange Canvas Configuration
33
44"""
5+ import warnings
6+
57import os
68import sys
79import itertools
1517from AnyQt .QtGui import QPainter , QFont , QFontMetrics , QColor , QPixmap , QIcon
1618from AnyQt .QtCore import Qt , QPoint , QRect
1719
18- from orangewidget .workflow import widgetsscheme , discovery , config
20+ from orangewidget .workflow import config
1921
2022import Orange
2123
@@ -30,7 +32,7 @@ class Config(config.Config):
3032 Orange application configuration
3133 """
3234 OrganizationDomain = "biolab.si"
33- ApplicationName = "Orange Canvas "
35+ ApplicationName = "Orange"
3436 ApplicationVersion = Orange .__version__
3537
3638 @staticmethod
@@ -132,9 +134,6 @@ def examples_entry_points():
132134 pkg_resources .iter_entry_points ("orange.widgets.tutorials" )
133135 )
134136
135- widget_discovery = discovery .WidgetDiscovery
136- workflow_constructor = widgetsscheme .WidgetsScheme
137-
138137 APPLICATION_URLS = {
139138 #: Submit a bug report action in the Help menu
140139 "Bug Report" : "https://github.com/biolab/orange3/issues" ,
@@ -159,10 +158,9 @@ def init():
159158
160159def data_dir ():
161160 """
162- Return the application data directory. If the directory path
161+ Return the Orange application data directory. If the directory path
163162 does not yet exists then create it.
164163 """
165-
166164 from Orange .misc import environ
167165 path = os .path .join (environ .data_dir (), "canvas" )
168166 try :
@@ -173,9 +171,9 @@ def data_dir():
173171
174172
175173def cache_dir ():
176- """Return the application cache directory. If the directory path
174+ """
175+ Return the Orange application cache directory. If the directory path
177176 does not yet exists then create it.
178-
179177 """
180178 from Orange .misc import environ
181179 path = os .path .join (environ .cache_dir (), "canvas" )
@@ -206,9 +204,15 @@ def log_dir():
206204def widget_settings_dir ():
207205 """
208206 Return the widget settings directory.
207+
208+ .. deprecated:: 3.23
209209 """
210- from Orange .misc import environ
211- return environ .widget_settings_dir ()
210+ warnings .warn (
211+ f"'{ __name__ } .widget_settings_dir' is deprecated." ,
212+ DeprecationWarning , stacklevel = 2
213+ )
214+ import orangewidget .settings
215+ return orangewidget .settings .widget_settings_dir ()
212216
213217
214218def widgets_entry_points ():
0 commit comments