|
@@ -6,7 +6,7 @@ from tempfile import mkstemp
|
|
|
|
|
|
from pytimeparse.timeparse import timeparse
|
|
|
|
|
|
-from larigira.fsutils import scan_dir
|
|
|
+from larigira.fsutils import scan_dir, shortname
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
@@ -64,7 +64,7 @@ def generate(spec):
|
|
|
|
|
|
for path in picked:
|
|
|
tmp = mkstemp(suffix=os.path.splitext(path)[-1],
|
|
|
- prefix='audiogen-randomdir-')
|
|
|
+ prefix='randomdir-%s-' % shortname(path))
|
|
|
os.close(tmp[0])
|
|
|
shutil.copy(path, tmp[1])
|
|
|
log.info("copying %s -> %s", path, os.path.basename(tmp[1]))
|