Skip to content

Commit

Permalink
spec to None
Browse files Browse the repository at this point in the history
  • Loading branch information
Cantalapiedra committed Jun 24, 2021
1 parent b493df4 commit 5d87c99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions eggnogmapper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
__VERSION__ = 'unknown'
__DB_VERSION__ = 'unknown'

MP_START_METHOD = "spawn" # spawn or fork

# Input types
ITYPE_CDS = "CDS"
ITYPE_PROTS = "proteins"
Expand Down
6 changes: 3 additions & 3 deletions emapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from eggnogmapper.common import existing_file, existing_dir, set_data_path, pexists, \
get_eggnogdb_file, get_eggnog_dmnd_db, get_eggnog_mmseqs_db, \
get_version, get_full_version_info, get_citation, get_call_info, \
ITYPE_CDS, ITYPE_PROTS, ITYPE_GENOME, ITYPE_META
ITYPE_CDS, ITYPE_PROTS, ITYPE_GENOME, ITYPE_META, MP_START_METHOD


__description__ = ('A program for bulk functional annotation of novel '
Expand Down Expand Up @@ -493,7 +493,7 @@ def parse_args(parser):

if args.cpu == 0:
args.cpu = multiprocessing.cpu_count()
multiprocessing.set_start_method("spawn")
multiprocessing.set_start_method(MP_START_METHOD)

if args.resume == True and args.override == True:
parser.error('Only one of --resume or --override is allowed.')
Expand Down Expand Up @@ -650,7 +650,7 @@ def parse_args(parser):


if __name__ == "__main__":

__spec__ = None
try:
start_time = time.time()

Expand Down

0 comments on commit 5d87c99

Please sign in to comment.