Skip to content

Commit

Permalink
fixed a bug when adding a new dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigori Fursin committed Aug 25, 2020
1 parent 63bbafa commit 1b1689d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* 2020.08.25 - [gfursin] fixed a bug when adding a new dataset

* 2020.01.31 - [gfursin] improved error message in program module.

* 2019.07.09 - [gfursin] propagate compiler_tags specifically for "get_compiler_version" subaction based on request here:
Expand Down
11 changes: 6 additions & 5 deletions module/dataset/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,13 @@ def add(i):
p=r['path']

# Copy file
pn=os.path.join(p,fn1)
if fn!='':
pn=os.path.join(p,fn1)

if o=='con':
ck.out('')
ck.out('Copying file '+fn+' to '+pn+' ...')
if o=='con':
ck.out('')
ck.out('Copying file '+fn+' to '+pn+' ...')

shutil.copyfile(fn,pn)
shutil.copyfile(fn,pn)

return r

0 comments on commit 1b1689d

Please sign in to comment.