summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epour/session.py4
-rwxr-xr-xsetup.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/epour/session.py b/epour/session.py
index cac5680..f3234d2 100644
--- a/epour/session.py
+++ b/epour/session.py
@@ -47,7 +47,7 @@ class Session(lt.session):
47 self.conf = conf 47 self.conf = conf
48 self.log = logging.getLogger("epour.session") 48 self.log = logging.getLogger("epour.session")
49 49
50 from Globals import version 50 from epour import __version__ as version
51 ver_ints = [] 51 ver_ints = []
52 for s in version.split("."): 52 for s in version.split("."):
53 ver_ints.append(int(s)) 53 ver_ints.append(int(s))
@@ -136,7 +136,7 @@ class Session(lt.session):
136 break 136 break
137 137
138 settings = self.settings() 138 settings = self.settings()
139 from Globals import version 139 from epour import __version__ as version
140 version += ".0" 140 version += ".0"
141 ver_s = "Epour/{} libtorrent/{}".format(version, lt.version) 141 ver_s = "Epour/{} libtorrent/{}".format(version, lt.version)
142 settings.user_agent = ver_s 142 settings.user_agent = ver_s
diff --git a/setup.py b/setup.py
index 51a1096..e60eebb 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
2 2
3from DistUtilsExtra import auto 3from DistUtilsExtra import auto
4 4
5from epour.Globals import version 5from epour import __version__
6 6
7 7
8class sdist_auto(auto.sdist_auto): 8class sdist_auto(auto.sdist_auto):
@@ -10,7 +10,7 @@ class sdist_auto(auto.sdist_auto):
10 10
11auto.setup( 11auto.setup(
12 name='epour', 12 name='epour',
13 version=version, 13 version=__version__,
14 author='Kai Huuhko', 14 author='Kai Huuhko',
15 author_email='kai.huuhko@gmail.com', 15 author_email='kai.huuhko@gmail.com',
16 maintainer='Kai Huuhko', 16 maintainer='Kai Huuhko',