1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

Fixed help.locale path references under Qt and fixed packaging to include the locale folder.

This commit is contained in:
Virgil Dupras
2011-11-30 11:06:08 -05:00
parent d3918724c0
commit 66303a2076
7 changed files with 17 additions and 41 deletions

View File

@@ -236,7 +236,7 @@ class DupeGuru(QObject):
self.about_box.show()
def showHelpTriggered(self):
base_path = platform.HELP_PATH.format(self.EDITION)
base_path = platform.HELP_PATH
url = QUrl.fromLocalFile(op.abspath(op.join(base_path, 'index.html')))
QDesktopServices.openUrl(url)

View File

@@ -6,13 +6,19 @@
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
import os.path as op
from hscommon.plat import ISWINDOWS, ISOSX, ISLINUX
# We want to get the absolute path or our root folder. We know that in that folder we're inside
# qt/base, so we just fo back two levels.
BASE_PATH = op.abspath(op.join(op.dirname(__file__), '..', '..'))
HELP_PATH = op.join(BASE_PATH, 'help')
if ISWINDOWS:
from .platform_win import *
INITIAL_FOLDER_IN_DIALOGS = 'C:\\'
elif ISOSX:
from .platform_osx import *
INITIAL_FOLDER_IN_DIALOGS = '/'
elif ISLINUX:
from .platform_lnx import *
INITIAL_FOLDER_IN_DIALOGS = '/'
else:
pass # unsupported platform

View File

@@ -1,11 +0,0 @@
# -*- coding: utf-8 -*-
# Created By: Virgil Dupras
# Created On: 2010-02-13
# Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
INITIAL_FOLDER_IN_DIALOGS = '/'
HELP_PATH = '/usr/share/dupeguru_{0}/help'

View File

@@ -1,13 +0,0 @@
# -*- coding: utf-8 -*-
# Created By: Virgil Dupras
# Created On: 2009-10-14
# Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
# dummy unit to allow the app to run under OSX during development
INITIAL_FOLDER_IN_DIALOGS = '/'
HELP_PATH = ''

View File

@@ -1,11 +0,0 @@
# -*- coding: utf-8 -*-
# Created By: Virgil Dupras
# Created On: 2009-08-31
# Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license
INITIAL_FOLDER_IN_DIALOGS = 'C:\\'
HELP_PATH = 'help'