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

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

        Create a tree of the state module, if if does not exists yet.

        :param root:
        :return:
        
Create a tree of the state module, if if does not exists yet.
Create a tree of the state module if if does not exists yet .
def _create_state_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_IMPLEMENTATION]:
                self._add_resource(root, rs_name)
        else:
            raise IOError("Path '{}' already exists".format(root))
def _create_state_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_IMPLEMENTATION ] : self . _add_resource ( root , rs_name ) else : raise IOError ( "Path '{}' already exists" . format ( root ) )
Create a tree of the state module, if if does not exists yet.
Create a tree of the state module if if does not exists yet .
"""
        Create a tree of the state module, if if does not exists yet.

        :param root:
        :return:
        """
None
self
root
None