python check if path is in path pathlib code example
Example: pathlib change extension
from pathlib import Path
filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"
from pathlib import Path
filename = "mysequence.fasta"
new_filename = Path(filename).stem + ".aln"