forked from openlp/openlp
AppLocation.PluginsDir changes
This commit is contained in:
parent
93ced465b6
commit
fea160c5c4
@ -71,11 +71,18 @@ class AppLocation(object):
|
|||||||
path = os.path.join(os.getenv(u'HOME'), u'.openlp', u'data')
|
path = os.path.join(os.getenv(u'HOME'), u'.openlp', u'data')
|
||||||
return path
|
return path
|
||||||
elif dir_type == AppLocation.PluginsDir:
|
elif dir_type == AppLocation.PluginsDir:
|
||||||
|
plugin_path = None
|
||||||
app_path = os.path.abspath(os.path.split(sys.argv[0])[0])
|
app_path = os.path.abspath(os.path.split(sys.argv[0])[0])
|
||||||
|
if sys.platform == u'win32':
|
||||||
if hasattr(sys, u'frozen') and sys.frozen == 1:
|
if hasattr(sys, u'frozen') and sys.frozen == 1:
|
||||||
return os.path.join(app_path, u'plugins')
|
plugin_path = os.path.join(app_path, u'plugins')
|
||||||
else:
|
else:
|
||||||
return os.path.join(app_path, u'openlp', u'plugins')
|
plugin_path = os.path.join(app_path, u'openlp', u'plugins')
|
||||||
|
elif sys.platform == u'darwin':
|
||||||
|
plugin_path = os.path.join(app_path, u'plugins')
|
||||||
|
else:
|
||||||
|
plugin_path = os.path.join(openlp.__file__, u'plugins')
|
||||||
|
return plugin_path
|
||||||
|
|
||||||
|
|
||||||
def check_latest_version(config, current_version):
|
def check_latest_version(config, current_version):
|
||||||
|
Loading…
Reference in New Issue
Block a user