[sphinx] Fix version import
authorNaglis Jonaitis <njonaitis@gmail.com>
Mon, 27 Oct 2014 16:49:48 +0000 (18:49 +0200)
committerNaglis Jonaitis <njonaitis@gmail.com>
Mon, 27 Oct 2014 16:49:48 +0000 (18:49 +0200)
docs/conf.py

index 4a04ad779722f191085cf5bd3b927d89e4afa385..594ca61a6bf984d173620a3e95eaca28b22cda5a 100644 (file)
@@ -44,8 +44,8 @@ copyright = u'2014, Ricardo Garcia Gonzalez'
 # built documents.
 #
 # The short X.Y version.
 # built documents.
 #
 # The short X.Y version.
-import youtube_dl
-version = youtube_dl.__version__
+from youtube_dl.version import __version__
+version = __version__
 # The full version, including alpha/beta/rc tags.
 release = version
 
 # The full version, including alpha/beta/rc tags.
 release = version