Skip to content

Commit

Permalink
fix annotation-free mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Aug 2, 2024
1 parent df76499 commit eb4b23d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion isoquant.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ def check_and_load_args(args, parser):
args.genedb_output = args.output
elif not os.path.exists(args.genedb_output):
os.makedirs(args.genedb_output)
if args.genedb.lower().endswith("db"):
if not args.genedb:
args.genedb_filename = None
elif args.genedb.lower().endswith("db"):
args.genedb_filename = args.genedb
else:
args.genedb_filename = os.path.join(args.output, os.path.splitext(os.path.basename(args.genedb))[0] + ".db")
Expand Down

0 comments on commit eb4b23d

Please sign in to comment.