# Path: grace/utils.py
# def get_path():
#     encoding = sys.getfilesystemencoding()
#     if we_are_frozen():
#         return os.path.dirname(sys.executable)
#     return os.path.dirname(__file__)
# 
# Path: grace/error.py
# class FolderNotFoundError(Error):
#     pass
# 
# class FolderNotWritableError(Error):
#     pass
# 
# class FileNotFoundError(Error):
#     pass
# 
# class FileNotWritableError(Error):
#     pass


from builtins import input
from builtins import object
from .utils import get_path
from shutil import copytree, rmtree
from .error import FolderNotFoundError, FolderNotWritableError, FileNotFoundError, FileNotWritableError
from pkg_resources import resource_filename
import os
import sys

        if self._target is 'css':
            print('Update css files ...')
            self._update_css()

    def _update_all(self):
        if not self._test:
            try:
                self.update_css()
                self.update_config()
            except:
                raise

        try:
            self.update_libs()
            self.update_html()
            self.update_javascript()
        except:
            raise

    def _update_config(self):
        new_config_path = os.path.join(self._skeleton_path, 'project_X.cfg')
        current_config_path = os.path.join(self._cwd, 'project.cfg')

        if not os.path.exists(new_config_path):
            raise FileNotFoundError('Could not find the new project config file at: ' + new_config_path)

        if os.path.exists(current_config_path):
            try:
                os.remove(current_config_path)

# Path: grace/utils.py
# def get_path():
#     encoding = sys.getfilesystemencoding()
#     if we_are_frozen():
#         return os.path.dirname(sys.executable)
#     return os.path.dirname(__file__)
# 
# Path: grace/error.py
# class FolderNotFoundError(Error):
#     pass
# 
# class FolderNotWritableError(Error):
#     pass
# 
# class FileNotFoundError(Error):
#     pass
# 
# class FileNotWritableError(Error):
#     pass


# Path: grace/update.py
from builtins import input
from builtins import object
from .utils import get_path
from shutil import copytree, rmtree
from .error import FolderNotFoundError, FolderNotWritableError, FileNotFoundError, FileNotWritableError
from pkg_resources import resource_filename
import os
import sys


        if self._target is 'css':
            print('Update css files ...')
            self._update_css()

    def _update_all(self):
        if not self._test:
            try:
                self.update_css()
                self.update_config()
            except:
                raise

        try:
            self.update_libs()
            self.update_html()
            self.update_javascript()
        except:
            raise

    def _update_config(self):
        new_config_path = os.path.join(self._skeleton_path, 'project_X.cfg')
        current_config_path = os.path.join(self._cwd, 'project.cfg')

        if not os.path.exists(new_config_path):
            raise FileNotFoundError('Could not find the new project config file at: ' + new_config_path)

        if os.path.exists(current_config_path):
            try:
                os.remove(current_config_path)

            except: