Skip to content

Commit

Permalink
fix bug in creating extra directory in create_db
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadbakhtiari committed Oct 8, 2019
1 parent eb89cc6 commit 2609062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advntr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def identify_homologous_vntrs(vntrs, chromosome=None):


def create_vntrs_database(db_file):
if not os.path.exists(os.path.basename(db_file)):
os.makedirs(os.path.basename(db_file))
if not os.path.exists(os.path.dirname(db_file)):
os.makedirs(os.path.dirname(db_file))
db = sqlite3.connect(db_file)
cursor = db.cursor()
cursor.execute('''
Expand Down

0 comments on commit 2609062

Please sign in to comment.