def make_dirs(conf):
	if conf.has_key('LOGFILE'):
		dirname = os.path.dirname(conf['LOGFILE'])
		try:
			os.makedirs(dirname)
		except __HOLE__ as exc:
			if exc.errno != errno.EEXIST:
				raise
dataset/ETHPy150Open nims11/hostapd.py/HPS.py/make_dirs