summaryrefslogtreecommitdiff
path: root/panfry/util.py
diff options
context:
space:
mode:
authorScott Bahling <sbahling@suse.de>2013-03-23 14:49:42 +0100
committerScott Bahling <sbahling@suse.de>2013-03-23 14:49:42 +0100
commit74edbf065728498c38f1975c97b7d16f40d1903c (patch)
treedbbd610f899b16447a09e7dc36e975c042404b05 /panfry/util.py
parenta62783371454942e4edc1aa6e23b7deb76a268a4 (diff)
downloadpanfry-74edbf065728498c38f1975c97b7d16f40d1903c.tar.gz
panfry-74edbf065728498c38f1975c97b7d16f40d1903c.tar.xz
panfry-74edbf065728498c38f1975c97b7d16f40d1903c.zip
New document file structure
- Document source is to be found under srcdir/src - Templates under srcdir/templates - Assets under srcdir/assets Assets are any files/directories that should be copied to the pubdir but are otherwise unprocessed by panfry. - By default pubdir = srcdir/pub
Diffstat (limited to 'panfry/util.py')
-rwxr-xr-xpanfry/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/panfry/util.py b/panfry/util.py
index 5909eef..c4bab42 100755
--- a/panfry/util.py
+++ b/panfry/util.py
@@ -1,12 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
+import distutils.dir_util as dir_util
import shutil
def copy(src, dst, ignore=None):
if os.path.isdir(src):
- shutil.copytree(src, dst, True, ignore)
+ dir_util.copy_tree(src, dst)
else:
shutil.copy(src, dst)