def build_db(): DBPath = '..' + os.path.sep + 'DB' if not os.path.exists(DBPath): print 'DB directory not found creating directory.' os.makedirs(DBPath) db_builder.build_DB()