@staticmethod<EOL><INDENT>def getcwd(moduleName=None):<DEDENT>
try:<EOL><INDENT>p = PathStr(sys._MEIPASS)<EOL>if moduleName is not None:<EOL><INDENT>return p.join(moduleName.split('<STR_LIT:.>')[<NUM_LIT:0>])<EOL><DEDENT>return p<EOL><DEDENT>except AttributeError:<EOL><INDENT>return PathStr(os.getcwd())<EOL><DEDENT>
get current path either from the temp folder used by pyinstaller:

    * apps 'sys._MEIPASS' if packed with --onefile option

or

    * os.getcwd()