mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #721 from efiop/master
run: properly generate automatic name when output is a directory and …
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