Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWang committed Feb 10, 2017
1 parent 0ed3ddd commit f67358c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
from os import path
import sys
sys.path.insert(0, sys.path.insert(0, path.dirname(path.dirname(path.dirname(__file__)))))
from os import path

sys.path.insert(0, path.dirname(path.dirname(path.dirname(__file__))))


# -- General configuration ------------------------------------------------

Expand Down
8 changes: 7 additions & 1 deletion rqalpha/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@
'version_info'
]


__version__ = pkgutil.get_data(__package__, 'VERSION.txt').decode('ascii').strip()

version_info = tuple(int(v) if v.isdigit() else v
for v in __version__.split('.'))

import sys

if sys.version_info < (3, 4):
print("Scrapy %s requires Python 3.4 above" % __version__)
sys.exit(1)

del sys
del pkgutil

0 comments on commit f67358c

Please sign in to comment.