Added some new config to make the setup copy the glade file
This commit is contained in:
parent
e5e3842bfc
commit
0e0bb324ba
2 changed files with 7 additions and 2 deletions
2
setup.py
2
setup.py
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue