Skip to content

Commit

Permalink
Minor bug fixes to setting up reference data.
Browse files Browse the repository at this point in the history
  • Loading branch information
donovan-h-parks committed Dec 22, 2019
1 parent 91eef2f commit 3eac958
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions checkm/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.1.2
- removed erroneous error message when setting root to CheckM reference data
- fixed infinit loop issue when trying to install CheckM reference data to directory without write permission

1.1.1
- fixes legacy Python 2 syntax issues (thanks to Sebastian Jaenicke!)

Expand Down
3 changes: 2 additions & 1 deletion checkm/checkmData.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def confirmPath(self, path=None):
print ("Path [%s] exists and you have permission to write to this folder." % path)
else:
print ("Path [%s] exists but you do not have permission to write to this folder." % path)
sys.exit(-1)
else:
# path does not exist, try to make it
print ("Path [%s] does not exist so I will attempt to create it" % path)
Expand All @@ -187,7 +188,7 @@ def confirmPath(self, path=None):
print ("Path [%s] has been created and you have permission to write to this folder." % path)
path_set = True
except Exception:
print ("Unable to make the folder, Error was: %s" % sys.exc_info()[0])
print ("Unable to make the folder; error was: %s" % sys.exc_info()[0])
minimal = True

# (re)make the manifest file
Expand Down
1 change: 1 addition & 0 deletions checkm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def updateCheckM_DB(self, options):
action = options.action
if action and action[0] == 'setRoot' and len(action) > 1:
DBM = DBManager(set_path=action[1])
else:
self.logger.error('Path to the CheckM reference data must be specified.')

def binFiles(self, binFolder, binExtension):
Expand Down

0 comments on commit 3eac958

Please sign in to comment.