summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py')
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
index 34a82cfd552b..19ef40c4a576 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogResources.py
@@ -19,8 +19,16 @@
class LetterWizardDialogResources(object):
def __init__(self):
- import imp, os
- imp.load_source('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc'))
+ import sys, os
+
+ # imp is deprecated since Python v.3.4
+ if sys.version_info >= (3,3):
+ from importlib.machinery import SourceFileLoader
+ SourceFileLoader('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc')).load_module()
+ else:
+ import imp
+ imp.load_source('strings', os.path.join(os.path.dirname(__file__), '../common/strings.hrc'))
+
import strings
self.resLetterWizardDialog_title = strings.RID_LETTERWIZARDDIALOG_START_1