Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
Some other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Dec 27, 2017
1 parent f37d4c1 commit e6beecf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bigbuild/views.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import logging
import bigbuild
from fs import path
from fs import copy
Expand All @@ -21,6 +22,7 @@
Buildable404View,
BuildableRedirectView
)
logger = logging.getLogger(__name__)


class BigBuildMixin(object):
Expand Down Expand Up @@ -167,7 +169,7 @@ def build_static_directory(self, obj):
)
else:
# Or a more vanilla way of copying the files with Python
logger.debug("Copying {}{} to {}{}".format("osfs://", self.static_root, self.fs_name, target_dir))
logger.debug("Copying {}{} to {}{}".format("osfs://", source_dir, self.fs_name, target_dir))
copy.copy_dir("osfs:///", smart_text(source_dir), self.fs, smart_text(target_dir))

def build_object(self, obj):
Expand All @@ -192,7 +194,12 @@ def build_object(self, obj):
target
)
else:
logger.debug("Copying {}{} to {}{}".format("osfs://", obj.archive_static_directory_path, self.fs_name, target))
logger.debug("Copying {}{} to {}{}".format(
"osfs://",
obj.archive_static_directory_path,
self.fs_name,
target
))
copy.copy_dir(
"osfs:///",
smart_text(obj.archive_static_directory_path),
Expand Down

0 comments on commit e6beecf

Please sign in to comment.