def _createPluginDummy(entrypath, pluginContent, real, pluginModule):
 entrypath.createDirectory()
 pkg = entrypath.child('plugindummy')
 pkg.createDirectory()
 if real:
  pkg.child('__init__.py').setContent('')
 plugs = pkg.child('plugins')
 plugs.createDirectory()
 if real:
  plugs.child('__init__.py').setContent(pluginInitFile)
 plugs.child((pluginModule + '.py')).setContent(pluginContent)
 return plugs

def _createPluginDummy ( entrypath , pluginContent , real , pluginModule ) : entrypath . createDirectory ( ) pkg = entrypath . child ( 'plugindummy' ) pkg . createDirectory ( ) if real : pkg . child ( '__init__.py' ) . setContent ( '' ) plugs = pkg . child ( 'plugins' ) plugs . createDirectory ( ) if real : plugs . child ( '__init__.py' ) . setContent ( pluginInitFile ) plugs . child ( ( pluginModule + '.py' ) ) . setContent ( pluginContent ) return plugs
create a plugindummy package .