def _exe(self, args): return pasta_main(args)
# Jiaye Yu and Mark Holder, University of Kansas if __name__ == "__main__": import os import sys from pasta.mainpasta import pasta_main from pasta import MESSENGER sys.setrecursionlimit(100000) _PASTA_DEBUG = os.environ.get('PASTA_DEBUG') _DEVELOPER = _PASTA_DEBUG and _PASTA_DEBUG != '0' if not _DEVELOPER: _PASTA_DEVELOPER = os.environ.get('PASTA_DEVELOPER') _DEVELOPER = _PASTA_DEVELOPER and _PASTA_DEVELOPER != '0' try: rc, temp_dir, temp_fs = pasta_main() if not rc: raise ValueError("Unknown PASTA execution error") if (temp_dir is not None) and (os.path.exists(temp_dir)): MESSENGER.send_info( "Note that temporary files from the run have not been deleted, they can be found in:\n '%s'\n" % temp_dir) if sys.platform.lower().startswith('darwin') and ("'" not in temp_dir): MESSENGER.send_info(''' If you cannot see this directory in the Finder application, you may want to use the 'open' command executed from a Terminal. You can do this by launching the /Applications/Utilities/Terminal program and then typing open '%s'
if __name__ == "__main__": import os import sys from pasta.mainpasta import pasta_main from pasta import MESSENGER sys.setrecursionlimit(100000) _PASTA_DEBUG = os.environ.get("PASTA_DEBUG") _DEVELOPER = _PASTA_DEBUG and _PASTA_DEBUG != "0" if not _DEVELOPER: _PASTA_DEVELOPER = os.environ.get("PASTA_DEVELOPER") _DEVELOPER = _PASTA_DEVELOPER and _PASTA_DEVELOPER != "0" try: rc, temp_dir, temp_fs = pasta_main() if not rc: raise ValueError("Unknown PASTA execution error") if (temp_dir is not None) and (os.path.exists(temp_dir)): MESSENGER.send_info( "Note that temporary files from the run have not been deleted, they can be found in:\n '%s'\n" % temp_dir ) if sys.platform.lower().startswith("darwin") and ("'" not in temp_dir): MESSENGER.send_info( """ If you cannot see this directory in the Finder application, you may want to use the 'open' command executed from a Terminal. You can do this by launching the /Applications/Utilities/Terminal program and then typing open '%s'