def note(self, s, killUnitTest=False): if g.unitTesting: if killUnitTest: assert False, s else: g.note('Note: %s' % (s))
def note (self,s,killUnitTest=False): if g.unitTesting: if killUnitTest: assert False,s else: g.note('Note: %s' % (s))
def note(self, s, killUnitTest=False): if g.unitTesting: if 0: # To trace cause of failed unit test. g.trace('=====', s, g.callers()) if killUnitTest: assert False, s else: g.note(f"Note: {s}")
def note(self, s, killUnitTest=False): if g.unitTesting: if 0: # To trace cause of failed unit test. g.trace('=====',s, g.callers()) if killUnitTest: assert False, s else: g.note('Note: %s' % (s))
def create(self, fn): '''Create the given file with empty contents.''' theDir = g.os_path_dirname(fn) g.makeAllNonExistentDirectories(theDir, c=self.c, force=True, verbose=True) # Make the directories as needed. try: f = open(fn, mode='wb') f.close() g.note('created: %s' % (fn)) except IOError: g.error('can not create: %s' % (fn)) except Exception: g.error('unexpected error creating: %s' % (fn)) g.es_exception()
def create(self, fn): """Create the given file with empty contents.""" # Make the directories as needed. theDir = g.os_path_dirname(fn) if theDir: ok = g.makeAllNonExistentDirectories(theDir) # #1453: Don't assume the directory exists. if not ok: g.error(f"did not create directory: {theDir}") return # Create the file. try: f = open(fn, mode='wb') f.close() g.note(f"created: {fn}") except IOError: g.error(f"can not create: {fn}") except Exception: g.error(f"unexpected error creating: {fn}") g.es_exception()
def lock (self): g.note('rendering pane locked') self.locked = True
def lock (self): '''Lock the vr pane.''' g.note('rendering pane locked') self.locked = True
def unlock (self): '''Unlock the vr pane.''' g.note('rendering pane unlocked') self.locked = False
def unlock(self): """Unlock the vr pane.""" g.note("rendering pane unlocked") self.locked = False
def lock(self): """Lock the vr pane.""" g.note("rendering pane locked") self.locked = True
def lock(self): '''Lock the vr pane.''' g.note('rendering pane locked') self.locked = True
def unlock(self): '''Unlock the vr pane.''' g.note('rendering pane unlocked') self.locked = False
def unlock (self): g.note('rendering pane unlocked') self.locked = False