mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
run: properly generate automatic name when output is a directory and no -f specified
Fixed #720 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+1
-1
@@ -43,6 +43,6 @@ class CmdRun(CmdBase):
|
||||
def _stage_file_basename(fname):
|
||||
result = os.path.basename(fname)
|
||||
if len(result) == 0:
|
||||
result = os.path.dirname(fname)
|
||||
result = os.path.basename(os.path.dirname(fname))
|
||||
result += Stage.STAGE_FILE_SUFFIX
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user