diff --git a/src/libprs500/gui2/dialogs/user_profiles.ui b/src/libprs500/gui2/dialogs/user_profiles.ui index d08d8284b2..146735b03c 100644 --- a/src/libprs500/gui2/dialogs/user_profiles.ui +++ b/src/libprs500/gui2/dialogs/user_profiles.ui @@ -283,7 +283,7 @@ p, li { white-space: pre-wrap; } - For help with writing advanced news profiles, please visit <a href="https://libprs500.kovidgoyal.net/wiki/UserProfiles">UserProfiles</a> + For help with writing advanced news profiles, please visit <a href="https://__appname__.kovidgoyal.net/wiki/UserProfiles">UserProfiles</a> true diff --git a/src/libprs500/gui2/main.ui b/src/libprs500/gui2/main.ui index 51da48a883..0cb90b6d38 100644 --- a/src/libprs500/gui2/main.ui +++ b/src/libprs500/gui2/main.ui @@ -17,7 +17,7 @@ - libprs500 + __appname__ :/library @@ -105,7 +105,7 @@ <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">For help visit <a href="http://libprs500.kovidgoyal.net/user_manual"><span style=" text-decoration: underline; color:#0000ff;">libprs500.kovidgoyal.net</span></a><br /><br /><span style=" font-weight:600;">libprs500</span>: %1 by <span style=" font-weight:600;">Kovid Goyal</span> %2<br />%3</p></body></html> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">For help visit <a href="http://__appname__.kovidgoyal.net/user_manual"><span style=" text-decoration: underline; color:#0000ff;">__appname__.kovidgoyal.net</span></a><br /><br /><span style=" font-weight:600;">__appname__</span>: %1 by <span style=" font-weight:600;">Kovid Goyal</span> %2<br />%3</p></body></html> Qt::RichText diff --git a/src/libprs500/gui2/make.py b/src/libprs500/gui2/make.py index acdd6d6fee..34cfb34c50 100644 --- a/src/libprs500/gui2/make.py +++ b/src/libprs500/gui2/make.py @@ -22,6 +22,9 @@ from functools import partial from PyQt4.uic import compileUi check_call = partial(subprocess.check_call, shell=True) +sys.path.insert(1, os.path.abspath('..%s..'%os.sep)) + +from libprs500 import __appname__ def find_forms(): forms = [] @@ -43,6 +46,7 @@ def build_forms(forms): buf = cStringIO.StringIO() compileUi(form, buf) dat = buf.getvalue() + dat = dat.replace('__appname__', __appname__) dat = dat.replace('import images_rc', 'from libprs500.gui2 import images_rc') dat = dat.replace('from library import', 'from libprs500.gui2.library import') dat = dat.replace('from widgets import', 'from libprs500.gui2.widgets import')