MCPcopy Index your code
hub / github.com/Nuitka/Nuitka / getCompileTimeDirectory

Method getCompileTimeDirectory

nuitka/nodes/ModuleNodes.py:164–180  ·  view source on GitHub ↗

The compile time directory for the module. Returns: Full path to module directory at compile time. Notes: For packages, we let the package directory be the result, otherwise the containing directory is the result. Notes:

(self)

Source from the content-addressed store, hash-verified

162 return os.path.abspath(self.source_ref.getFilename())
163
164 def getCompileTimeDirectory(self):
165 """The compile time directory for the module.
166
167 Returns:
168 Full path to module directory at compile time.
169 Notes:
170 For packages, we let the package directory be
171 the result, otherwise the containing directory
172 is the result.
173 Notes:
174 Use this to find files nearby a module, mainly
175 in plugin code.
176 """
177 result = self.getCompileTimeFilename()
178 if not os.path.isdir(result):
179 result = os.path.dirname(result)
180 return result
181
182 def getRunTimeFilename(self):
183 reference_mode = getFileReferenceMode()

Callers 3

_considerDataFilesMethod · 0.80

Calls 1

Tested by

no test coverage detected