Skip to content

Commit

Permalink
Merge pull request #4268 from cche/cche-import-hist-withsubdir
Browse files Browse the repository at this point in the history
Importing old exported histories failing
  • Loading branch information
jmchilton committed Jul 12, 2017
2 parents db486b5 + 8a309ce commit 641a268
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/galaxy/tools/imp_exp/__init__.py
Expand Up @@ -71,6 +71,13 @@ def get_tag_str( tag, value ):
archive_dir = jiha.archive_dir
user = jiha.job.user

# Bioblend previous to 17.01 exported histories with an extra subdir.
if not os.path.exists( os.path.join( archive_dir, 'history_attrs.txt' ) ):
for d in os.listdir( archive_dir ):
if os.path.isdir( os.path.join( archive_dir, d ) ):
archive_dir = os.path.join( archive_dir, d )
break

#
# Create history.
#
Expand Down

0 comments on commit 641a268

Please sign in to comment.