[anjuta] Change path of UI file in PyGTK project



commit b1811cfac686d043bc49f67fb412b6ac022b872e
Author: P. F. Chimento <philip chimento gmail com>
Date:   Tue Mar 22 18:23:31 2011 +0100

    Change path of UI file in PyGTK project
    
    A freshly-generated PyGTK project doesn't work out of the box because
    the UI file is given without a path. The file is generated in the src/
    directory, but the script is executed from the project root directory.
    This patch sets UI_FILE='src/whatever.ui' so that a project will run out
    of the box.

 plugins/project-wizard/templates/pygtk/src/main.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-wizard/templates/pygtk/src/main.py b/plugins/project-wizard/templates/pygtk/src/main.py
index 1ec2b4b..26c4d27 100644
--- a/plugins/project-wizard/templates/pygtk/src/main.py
+++ b/plugins/project-wizard/templates/pygtk/src/main.py
@@ -16,7 +16,7 @@ import os, sys
 [+IF (=(get "HaveBuilderUI") "1")+]
 #Comment the first line and uncomment the second before installing
 #or making the tarball (alternatively, use project variables)
-UI_FILE = "[+NameHLower+].ui"
+UI_FILE = "src/[+NameHLower+].ui"
 #UI_FILE = "/usr/local/share/[+NameHLower+]/ui/[+NameHLower+].ui"
 [+ENDIF+]
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]