Ignore:
Timestamp:
02/06/12 22:14:43 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Message:

OrangeQt documentation builds without adding orngdir to path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/orngSignalManager.py

    r9671 r9873  
    99 
    1010import orange 
    11 import orngDebugging 
     11from Orange.misc import debugging 
    1212 
    1313Single = 2 
     
    124124    def __init__(self, *args): 
    125125        self.debugFile = None 
    126         self.verbosity = orngDebugging.orngVerbosity 
     126        self.verbosity = debugging.orngVerbosity 
    127127        self.stderr = sys.stderr 
    128128        self._seenExceptions = {} 
     
    130130        self.asyncProcessingEnabled = False 
    131131         
    132         import orngEnviron 
     132        from Orange.misc import environ 
    133133        if not hasattr(self, "log"): 
    134134            SignalManager.log = logging.getLogger("SignalManager") 
    135             self.logFileName = os.path.join(orngEnviron.canvasSettingsDir, "signalManager.log") 
     135            self.logFileName = os.path.join(environ.canvas_settings_dir, 
     136                "signalManager.log") 
    136137            try: 
    137138                self.log.addHandler(logging.handlers.RotatingFileHandler(self.logFileName, maxBytes=2**20, backupCount=2)) 
     
    151152        self.myerr = err() 
    152153             
    153         if orngDebugging.orngDebuggingEnabled: 
    154             self.debugHandler = logging.FileHandler(orngDebugging.orngDebuggingFileName, mode="wb") 
     154        if debugging.orngDebuggingEnabled: 
     155            self.debugHandler = logging.FileHandler(debugging.orngDebuggingFileName, mode="wb") 
    155156            self.log.addHandler(self.debugHandler) 
    156             self.log.setLevel(logging.DEBUG if orngDebugging.orngVerbosity > 0 else logging.INFO)  
     157            self.log.setLevel(logging.DEBUG if debugging.orngVerbosity > 0 
     158            else logging.INFO) 
    157159            sys.excepthook = self.exceptionHandler 
    158160            sys.stderr = self.myerr 
Note: See TracChangeset for help on using the changeset viewer.