Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def make_trace_folder(settings):
    try:
        os.mkdir(settings['trace_folder'])
    except OSError as exc:
        if exc.errno == errno.EEXIST:
            pass
        else: raise
        


src/w/e/web-logging-example-HEAD/tests/base.py   web-logging-example(Download)
import tornado.testing
import shutil
 
import recorder
from util import make_trace_folder
    def setUp(self):
        super(BaseRecorderTestCase, self).setUp()
        make_trace_folder(settings)
 
    def tearDown(self):

src/w/e/web-logging-example-HEAD/recorder.py   web-logging-example(Download)
from urls import url_patterns
 
from util import make_trace_folder
 
class DataRecorder(tornado.web.Application):
    event_thread.start()
 
    make_trace_folder(settings)
 
    app = DataRecorder()