comparison setup.py @ 290:e3ec67b04c03

Avoid long lines
author David Fraser <davidf@sjsoft.com>
date Thu, 05 Sep 2013 17:13:29 +0200
parents 67387621c61b
children ef7018eaaec2
comparison
equal deleted inserted replaced
289:d7ab2594f8d2 290:e3ec67b04c03
13 pass 13 pass
14 14
15 try: 15 try:
16 from pip.req import parse_requirements 16 from pip.req import parse_requirements
17 import os 17 import os
18 install_reqs = parse_requirements(os.path.join(os.path.dirname(__file__), 'requirements.txt')) 18 game_dir = os.path.dirname(__file__)
19 req_file = os.path.join(game_dir, 'requirements.txt')
20 install_reqs = parse_requirements(req_file)
19 reqs = [str(ir.req) for ir in install_reqs] 21 reqs = [str(ir.req) for ir in install_reqs]
20 except ImportError: 22 except ImportError:
21 reqs = [] 23 reqs = []
22 24
23 # This should probably be pulled from constants.py 25 # This should probably be pulled from constants.py