(self, absolute_path)
Store _absolute_path and update relative path (stored_path)
Store _absolute_path and update relative path (stored_path)
Store _absolute_path and update relative path ( stored_path )
def last_dir(self, absolute_path):
        """Store _absolute_path and update relative path (stored_path)"""
        self._absolute_path = absolute_path

        workflow_dir = self.workflowEnv().get("basedir", None)
        if workflow_dir and absolute_path.startswith(workflow_dir.rstrip("/")):
            self.stored_path = os.path.relpath(absolute_path, workflow_dir)
        else:
            self.stored_path = absolute_path
def last_dir ( self , absolute_path ) : self . _absolute_path = absolute_path workflow_dir = self . workflowEnv ( ) . get ( "basedir" , None ) if workflow_dir and absolute_path . startswith ( workflow_dir . rstrip ( "/" ) ) : self . stored_path = os . path . relpath ( absolute_path , workflow_dir ) else : self . stored_path = absolute_path