()
| 100 | |
| 101 | |
| 102 | def 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 | |
| 111 | def getVersion(): |