Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lee212 committed Feb 8, 2016
1 parent 6ffaaee commit 6694b7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mgescan/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"""
from docopt import docopt
from Bio import SeqIO
import os
from os import listdir
from os.path import isfile, join
from mgescan import utils
Expand Down Expand Up @@ -53,7 +54,7 @@ def run(self):
self.split_file(self.input_file, self.result_path)

def check_param(self):
if(not os.path.isfile(self.input_file)):
if(not isfile(self.input_file)):
print ("%s is not valid filename" % self.input_file);
os.rmdir(self.result_path)
os.sys.exit()
Expand Down

0 comments on commit 6694b7c

Please sign in to comment.