MCPcopy
hub / github.com/Nuitka/Nuitka / getOutputFilename

Method getOutputFilename

nuitka/nodes/ModuleNodes.py:550–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

548 return function
549
550 def getOutputFilename(self):
551 main_filename = self.getFilename()
552
553 if main_filename.endswith(".py"):
554 result = main_filename[:-3]
555 elif main_filename.endswith(".pyw"):
556 result = main_filename[:-4]
557 else:
558 result = main_filename
559
560 # There are some characters that somehow are passed to shell, by
561 # Scons or unknown, so lets avoid them for now.
562 return result.replace(")", "").replace("(", "")
563
564 def computeModule(self):
565 self.restartTraversal()

Callers

nothing calls this directly

Calls 2

getFilenameMethod · 0.95
replaceMethod · 0.80

Tested by

no test coverage detected