MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / file_import_tokens

Method file_import_tokens

code2flow/python.py:268–275  ·  view source on GitHub ↗

Returns the token(s) we would use if importing this file from another. :param filename str: :rtype: list[str]

(filename)

Source from the content-addressed store, hash-verified

266
267 @staticmethod
268 def file_import_tokens(filename):
269 """
270 Returns the token(s) we would use if importing this file from another.
271
272 :param filename str:
273 :rtype: list[str]
274 """
275 return [os.path.split(filename)[-1].rsplit('.py', 1)[0]]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected