Skip to content

Commit

Permalink
Minor fix to set astrodb.Database() default tabledata path.
Browse files Browse the repository at this point in the history
  • Loading branch information
hover2pi committed May 16, 2017
1 parent c798bad commit eba8d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astrodbkit/astrodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_database(dbpath):


class Database:
def __init__(self, dbpath, directory='tabledata'):
def __init__(self, dbpath, directory=''):
"""
Initialize the database.
Expand All @@ -78,7 +78,7 @@ def __init__(self, dbpath, directory='tabledata'):
# is the schema file, then load the tables individually

# Save the directory to the tabledata as an attribute
self.directory = directory or os.path.join(os.path.dirname(self.dbpath), 'tabledata')
self.directory = directory or os.path.join(os.path.dirname(dbpath), 'tabledata')

# If it is a .sql file, create an empty database in the
# working directory and generate the database from file
Expand Down

0 comments on commit eba8d51

Please sign in to comment.