# 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
from __future__ import print_function
from __future__ import absolute_import


class Update(object):
    def __init__(self, config, test=False, target=None):
        self._cwd = os.getcwd()
        self._root = get_path()
        self._config = config
        self._test = test

# 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

from __future__ import print_function
from __future__ import absolute_import


class Update(object):
    def __init__(self, config, test=False, target=None):
        self._cwd = os.getcwd()
        self._root = get_path()
        self._config = config
        self._test = test

        self._target = target