|
@@ -34,18 +34,21 @@ from email.mime.multipart import MIMEMultipart
|
|
from email.mime.text import MIMEText
|
|
from email.mime.text import MIMEText
|
|
from optparse import OptionParser
|
|
from optparse import OptionParser
|
|
|
|
|
|
-import subscription
|
|
|
|
-import youtube
|
|
|
|
-import configuration
|
|
|
|
|
|
+from lib_stov import subscription
|
|
|
|
+from lib_stov import youtube
|
|
|
|
+from lib_stov import configuration
|
|
|
|
|
|
-from outputhelper import printf
|
|
|
|
|
|
+from lib_stov.outputhelper import printf
|
|
|
|
|
|
"""Determine the path where the stov files are for localization"""
|
|
"""Determine the path where the stov files are for localization"""
|
|
|
|
|
|
locale_path = os.path.join(sys.path[0] + "/locale")
|
|
locale_path = os.path.join(sys.path[0] + "/locale")
|
|
if gettext.find("stov", locale_path) == None:
|
|
if gettext.find("stov", locale_path) == None:
|
|
base_path = os.path.split(sys.path[0])[0]
|
|
base_path = os.path.split(sys.path[0])[0]
|
|
- locale_path = os.path.join(base_path, "share/locale")
|
|
|
|
|
|
+ if "share" in base_path:
|
|
|
|
+ locale_path = os.path.join(base_path, "locale")
|
|
|
|
+ else:
|
|
|
|
+ locale_path = os.path.join(base_path, "share/locale")
|
|
|
|
|
|
"""Initialize gettext to support translation of the program"""
|
|
"""Initialize gettext to support translation of the program"""
|
|
|
|
|