コード例 #1
0
ファイル: sate_test_case.py プロジェクト: justincbagley/pasta
 def _exe(self, args):
     return pasta_main(args)
コード例 #2
0
ファイル: sate_test_case.py プロジェクト: SagesWang/pasta
 def _exe(self, args):
     return pasta_main(args)
コード例 #3
0
ファイル: run_pasta.py プロジェクト: hsnsa/pastaspark
# 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'
コード例 #4
0
ファイル: run_pasta.py プロジェクト: kelsey-witt/pasta
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'