def create_init_file(folderName):
 if (not os.path.isdir(folderName)):
  raise NinjaIOException(u'The destination folder does not exist')
 name = os.path.join(folderName, u'__init__.py')
 if file_exists(name):
  raise NinjaFileExistsException(name)
 f = open(name, u'w')
 f.flush()
 f.close()

def create_init_file ( folderName ) : if ( not os . path . isdir ( folderName ) ) : raise NinjaIOException ( u'The destination folder does not exist' ) name = os . path . join ( folderName , u'__init__.py' ) if file_exists ( name ) : raise NinjaFileExistsException ( name ) f = open ( name , u'w' ) f . flush ( ) f . close ( )
create a __init__ .