source: orange/Orange/orng/orngEnviron.py @ 10580:c4cbae8dcf8b

Revision 10580:c4cbae8dcf8b, 857 bytes checked in by markotoplak, 2 years ago (diff)

Moved deprecation functions, progress bar support and environ into Orange.utils. Orange imports cleanly, although it is not tested yet.

Line 
1import Orange.utils.environ as environ
2
3directoryNames = dict(
4    orangeDir = environ.install_dir,
5    orangeDocDir = environ.doc_install_dir,
6    orangeVer = environ.version,
7    canvasDir = environ.canvas_install_dir,
8    widgetDir = environ.widget_install_dir,
9    picsDir = environ.icons_install_dir,
10    addOnsDirSys = environ.add_ons_dir,
11    addOnsDirUser = environ.add_ons_dir_user,
12    applicationDir = environ.application_dir,
13    outputDir = environ.output_dir,
14    defaultReportsDir = environ.default_reports_dir,
15    orangeSettingsDir = environ.orange_settings_dir,
16    widgetSettingsDir = environ.widget_settings_dir,
17    canvasSettingsDir = environ.canvas_settings_dir,
18    bufferDir = environ.buffer_dir
19    )
20globals().update(directoryNames)
21
22samepath = environ.samepath
23addOrangeDirectoriesToPath = environ.add_orange_directories_to_path
Note: See TracBrowser for help on using the repository browser.