class C: def method(self): import sys self.attr = sys.path