Added some new config to make the setup copy the glade file

This commit is contained in:
José Carlos Cuevas 2015-09-07 17:51:38 +02:00
parent e5e3842bfc
commit 0e0bb324ba
2 changed files with 7 additions and 2 deletions

View file

@ -6,7 +6,7 @@ setup(
name = "jsoninspector",
version = "1.3",
packages = find_packages('src', exclude=['distribute_setup']),
scripts = ['src/jsoninspector.py'],
scripts = ['src/jsoninspector.py','src/jsoninspector.glade'],
entry_points = {
'gui_scripts': [
'jsoninspector = jsoninspector:MainApp.start',

View file

@ -25,7 +25,12 @@ class MainWindowMethods(object):
principal
"""
self.builder = gtk.Builder()
self.builder.add_from_file(resource_filename(__name__,'../../src/jsoninspector.glade'))
try:
self.builder.add_from_file(resource_filename(__name__,'../../src/jsoninspector.glade'))
except:
self.builder.add_from_file(resource_filename(__name__,'jsoninspector.glade'))
self.builder.connect_signals(self)
# Prepara los renderizados de columna y las asigna a los valores