git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #29 LinuxApplication passing a list of files as 'sources' not working
[nepi.git]
/
src
/
nepi
/
util
/
execfuncs.py
diff --git
a/src/nepi/util/execfuncs.py
b/src/nepi/util/execfuncs.py
index
eaadf50
..
b25ae98
100644
(file)
--- a/
src/nepi/util/execfuncs.py
+++ b/
src/nepi/util/execfuncs.py
@@
-60,10
+60,17
@@
def lcopy(source, dest, recursive = False):
command = ["cp"]
if recursive:
command.append("-R")
command = ["cp"]
if recursive:
command.append("-R")
-
- command.append(src)
- command.append(dst)
-
+
+ if isinstance(dest, str):
+ dest = dest.split(";")
+
+ if isinstance(src, str):
+ src = src.split(";")
+
+ args.extend(src)
+
+ args.extend(dest)
+
p = subprocess.Popen(command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
p = subprocess.Popen(command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)