Skip to content

Commit

Permalink
Modify the path of fontstools.ui and update version to 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesni committed Feb 7, 2012
1 parent 9ccbb06 commit 57688e1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
File renamed without changes.
5 changes: 4 additions & 1 deletion fontstweak/tool.py
Expand Up @@ -20,6 +20,7 @@
#along with this program. If not, see <http://www.gnu.org/licenses/>.

import sys
import os
import string
import gi
from collections import OrderedDict
Expand Down Expand Up @@ -205,7 +206,9 @@ def render_combobox(self, lang, alias):
def __init__(self):
self.__initialized = False
builder = Gtk.Builder()
builder.add_from_file("fontstools.ui")
path = os.path.dirname(os.path.realpath(__file__))
uifile = os.path.join(path, 'fontstools.ui')
builder.add_from_file(uifile)
self.window = builder.get_object("dialog1")
self.window.connect("destroy", Gtk.main_quit)
self.window.set_title("fonts-tweak-tool")
Expand Down
26 changes: 26 additions & 0 deletions setup.py
@@ -0,0 +1,26 @@
#!/usr/bin/env python
"""
Build script for fonts-tweak-tool
"""
from setuptools import setup, find_packages

setup (name = "fonts-tweak-tool",
version = "0.0.2",
packages = find_packages(),
install_requires=[
'libeasyfc'
],
description = "Fonts Tweak Tool.",
author = 'Jian Ni',
author_email = 'jni@redhat.com',
license = 'LGPLv3+',
platforms=["Linux"],
scripts = ["fonts-tweak-tool"],

package_data = {'fontstweak':['fontstools.ui', 'locale-list']},
include_package_data = True,
classifiers=['License :: OSI Approved :: GNU Lesser General Public License (LGPL)',
'Operating System :: Unix',
'Programming Language :: Python',
]
)

0 comments on commit 57688e1

Please sign in to comment.