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

Method get_prog_name

tools/python-3.11.9-amd64/Lib/optparse.py:1544–1548  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1542 # -- Feedback methods ----------------------------------------------
1543
1544 def get_prog_name(self):
1545 if self.prog is None:
1546 return os.path.basename(sys.argv[0])
1547 else:
1548 return self.prog
1549
1550 def expand_prog_name(self, s):
1551 return s.replace("%prog", self.get_prog_name())

Callers 2

expand_prog_nameMethod · 0.95
errorMethod · 0.95

Calls 1

basenameMethod · 0.80

Tested by

no test coverage detected