MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / getPyfaRoot

Function getPyfaRoot

config.py:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102def getPyfaRoot():
103 if hasattr(sys, '_MEIPASS'):
104 return sys._MEIPASS
105 base = getattr(sys.modules['__main__'], "__file__", sys.executable) if isFrozen() else __file__
106 root = os.path.dirname(os.path.realpath(os.path.abspath(base)))
107 root = root
108 return root
109
110
111def getVersion():

Callers 1

defPathsFunction · 0.85

Calls 1

isFrozenFunction · 0.85

Tested by

no test coverage detected