Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(6) | Call(4) | Derive(0) | Import(2)
def dir_exists(dirpath): try: if os.path.exists(dirpath) and os.path.isdir(dirpath): # test that exists and is a directory return True else: return False except Exception as e: if DEBUG_FLAG: sys.stderr.write("Naked Framework Error: error with test for directory with the dir_exists() function (Naked.toolshed.system).") raise e
#!/usr/bin/env python # encoding: utf-8 import os from Naked.toolshed.system import file_exists, dir_exists, stderr, exit_success
def _is_lib_at_this_level(self): if dir_exists('lib'): return True else: return False
src/n/a/Naked-0.1.30/lib/Naked/commands/test.py Naked(Download)
#!/usr/bin/env python # encoding: utf-8 import os from Naked.toolshed.system import cwd, file_exists, dir_exists, stderr, exit_success
def _is_testdir_at_this_level(self): if file_exists('setup.py'): if dir_exists('tests'): return True else:
def _is_testdir_at_this_level(self): if file_exists('setup.py'): if dir_exists('tests'): return True else:
def _is_testdir_at_this_level(self): if file_exists('setup.py'): if dir_exists('tests'): return True else: