diff --git a/setup.py b/setup.py index e1e0eee..45135e0 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ setup( name='TermRecord', - version='1.1.3', + version='1.2.0', url='http://github.com/theonewolf/TermRecord', license='MIT', author='Wolfgang Richter', @@ -53,10 +53,10 @@ 'HTML output!', long_description=__doc__, scripts = ['src/TermRecord'], - data_files = [('/usr/local/share/TermRecord/templates', - ['templates/dynamic.jinja2', - 'templates/base.jinja2', - 'templates/static.jinja2'])], + data_files = [('local/share/TermRecord', + ['templates/dynamic.jinja2', + 'templates/base.jinja2', + 'templates/static.jinja2'])], install_requires=[ 'Jinja2>=2.6' ], @@ -71,6 +71,7 @@ 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3', 'Topic :: System :: Logging', 'Topic :: Terminals' ] diff --git a/src/TermRecord b/src/TermRecord index 38b9fb6..993f22d 100755 --- a/src/TermRecord +++ b/src/TermRecord @@ -24,10 +24,10 @@ from contextlib import closing from codecs import open as copen from json import dumps from math import ceil -from os.path import basename, dirname, exists +from os.path import basename, dirname, exists, join from struct import unpack from subprocess import Popen -from sys import platform, stderr +from sys import platform, prefix, stderr from tempfile import NamedTemporaryFile from jinja2 import FileSystemLoader, Template @@ -35,7 +35,8 @@ from jinja2.environment import Environment -DEFAULT_TEMPLATE = '/usr/local/share/TermRecord/templates/static.jinja2' +DEFAULT_TEMPLATE = join(prefix, 'local', 'share', 'TermRecord', + 'templates', 'static.jinja2') TTYREC = 'ttyrec'