Did I find the right examples for you? yes no

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

        def initParent(filepath):
	dirname = os.path.dirname(filepath)
	if not os.path.isdir(dirname):
		os.makedirs(dirname)
        


src/p/y/python-doubanfm-HEAD/doubanfm/listening.py   python-doubanfm(Download)
import logging.handlers
 
from .util import initParent, readCmdLine, socketfile, \
		encode, inline, EOFflag, resolve
from .controller import Controller
		logger.info(u'启动服务')
		s = socket.socket(socket.AF_UNIX)
		initParent(socketfile)
		s.bind(socketfile)
		s.listen(1)