mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-16 05:17:31 +00:00
Change get_version() to only return version number, not revision.
Added get_revision() to get svn revision number of build.
This commit is contained in:
parent
fdb07b4929
commit
f16092400d
@ -53,7 +53,10 @@ TORRENT_STATE = [
|
|||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
"""Returns the program version from the egg metadata"""
|
"""Returns the program version from the egg metadata"""
|
||||||
return pkg_resources.require("Deluge")[0].version
|
return pkg_resources.require("Deluge")[0].version.split("r")[0]
|
||||||
|
|
||||||
|
def get_revision():
|
||||||
|
return pkg_resources.require("Deluge")[0].version.split("r")[1]
|
||||||
|
|
||||||
def get_config_dir(filename=None):
|
def get_config_dir(filename=None):
|
||||||
""" Returns the config path if no filename is specified
|
""" Returns the config path if no filename is specified
|
||||||
|
Loading…
x
Reference in New Issue
Block a user