Skip to content

Commit

Permalink
cli: allow restoral of entire blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Mar 10, 2021
1 parent 1e46dca commit ed03f2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion emmet-cli/emmet/cli/tasks.py
Expand Up @@ -253,7 +253,10 @@ def restore(inputfile, file_filter):
if fnmatch(line, pattern):
if nlaunchers == nmax:
break
block, launcher = line.split(os.sep, 1)
if os.sep in line:
block, launcher = line.split(os.sep, 1)
else:
block, launcher = line.strip(), ""
for ff in file_filter:
block_launchers[block].append(
os.path.join(launcher.strip(), ff)
Expand Down

0 comments on commit ed03f2b

Please sign in to comment.