Mercurial > hg > numerics
view numerics/cli.py @ 185:411db53cb9fb
user new modern test runners
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 21 Jul 2017 09:37:28 -0700 |
parents | 4f474ceb9beb |
children |
line wrap: on
line source
#!/usr/bin/env python # -*- coding: utf-8 -*- # imports import os def ensure_dir(directory): """ensure a directory exists""" if os.path.exists(directory): assert os.path.isdir(directory) return directory os.makedirs(directory) return directory