def browse(path='~'): ''' Starts a BrowserWindow on *obj*, where *obj* is expected to be a starting path. ''' return browser.create(path)
def browse(path='~'): ''' Starts a BrowserWindow on *obj*, where *obj* is expected to be a starting path. ''' return browser.create(path) # # default stand-alone behavior: start a browser with # an IPython shell in the calling terminal. # if __name__ == "__main__": # starting logging system log = logging.getLogger ('paul') log.setLevel (logging.DEBUG) ch = logging.FileHandler("/tmp/paul-current.log", "w") ch.setLevel (logging.DEBUG) log.addHandler (ch) fmt = logging.Formatter('%(asctime)s %(levelname)s: %(name)s: %(module)s.%(funcName)s: %(message)s') ch.setFormatter(fmt) log.debug ("Starting...") if len(sys.argv) > 1: path = sys.argv[1] else: path = "~" P = browser.create(path, shell=True, log=log)