#!/usr/bin/env python
# vim:fileencoding=utf-8:noet
from __future__ import unicode_literals
import os
import sys

from setuptools import setup, find_packages
from setuptools.command.install import install

here = os.path.abspath(os.path.dirname(__file__))
try:
    README = open(os.path.join(here, 'README.md'), 'rb').read().decode('utf-8')
except IOError:
    README = ''

class new_install(install):
    def run(self):
        install.run(self) # invoke original install
        self.mkpath('usr/share/themer')
        self.copy_tree('data/default', 'usr/share/themer/default')
        self.mkpath('usr/share/fish/completions')
        self.copy_file('data/fish/themer.fish', 'usr/share/fish/completions/')

setup(
    name='Themer',
    version='1.1.1',
    description='Themer is a colorscheme generator and manager for your desktop.',
    long_description=README,
    author='Charles Leifer, Sol Bekic',
    author_email='s0lll0s@blinkenshell.org',
    url='https://github.com/S0lll0s/themer',
    scripts=['scripts/themer'],
    license='MIT',
    keywords='wm colorscheme color theme wallpaper',
    packages=find_packages(exclude=('tests', 'tests.*')),
    include_package_data=True,
    install_requires=['pyyaml','jinja2','pillow', 'requests'],
    cmdclass=dict(install=new_install)
)

@@ -479,32 +479,33 @@
    self.mkpath('
+/
 usr/share/themer
@@ -543,24 +543,25 @@
 /default', '
+/
 usr/share/th
@@ -596,16 +596,17 @@
 mkpath('
+/
 usr/shar
@@ -675,16 +675,17 @@
 fish', '
+/
 usr/shar

fix installation