sugarsdk/modgen.py
def _create_runner_tree(self, root):
        """
        Create a tree of the state module, if it does not exists yet.
        """

        if not os.path.exists(root):
            os.makedirs(root)
            for rs_name in [self.RS_INIT, self.RS_EXAMPLES, self.RS_DOCUMENTATION, self.RS_INTERFACE]:
                self._add_resource(root, rs_name)
            root = os.path.join(root, "_impl")
            os.mkdir(root)
            self._add_resource(root, self.RS_INIT)
            self._add_resource(root, self.RS_IMPLEMENTATION)
        else:
            raise IOError("Path '{}' already exists".format(root))

        Create a tree of the state module, if it does not exists yet.
        
Create a tree of the state module, if it does not exists yet.
Create a tree of the state module if it does not exists yet .
def _create_runner_tree(self, root):
        if not os.path.exists(root):
            os.makedirs(root)
            for rs_name in [self.RS_INIT, self.RS_EXAMPLES, self.RS_DOCUMENTATION, self.RS_INTERFACE]:
                self._add_resource(root, rs_name)
            root = os.path.join(root, "_impl")
            os.mkdir(root)
            self._add_resource(root, self.RS_INIT)
            self._add_resource(root, self.RS_IMPLEMENTATION)
        else:
            raise IOError("Path '{}' already exists".format(root))
def _create_runner_tree ( self , root ) : if not os . path . exists ( root ) : os . makedirs ( root ) for rs_name in [ self . RS_INIT , self . RS_EXAMPLES , self . RS_DOCUMENTATION , self . RS_INTERFACE ] : self . _add_resource ( root , rs_name ) root = os . path . join ( root , "_impl" ) os . mkdir ( root ) self . _add_resource ( root , self . RS_INIT ) self . _add_resource ( root , self . RS_IMPLEMENTATION ) else : raise IOError ( "Path '{}' already exists" . format ( root ) )
Create a tree of the state module, if it does not exists yet.
Create a tree of the state module if it does not exists yet .
"""
        Create a tree of the state module, if it does not exists yet.
        """
self
root