MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / check

Method check

tools/python-3.11.9-amd64/Lib/pdb.py:135–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 return res
134
135 def check(self):
136 if not os.path.exists(self):
137 print('Error:', self.orig, 'does not exist')
138 sys.exit(1)
139 if os.path.isdir(self):
140 print('Error:', self.orig, 'is a directory')
141 sys.exit(1)
142
143 # Replace pdb's dir with script's dir in front of module search path.
144 sys.path[0] = os.path.dirname(self)
145
146 @property
147 def filename(self):

Callers 1

mainFunction · 0.45

Calls 4

printFunction · 0.50
existsMethod · 0.45
exitMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected