steve
steve copied to clipboard
Use pkgutil to load video_reqs.json
This is to fix these errors I'm having while using steve-cmd webedit and clicking on a file to edit.
(I'm not running the command from steve repo clone)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 52774)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "build/bdist.linux-x86_64/egg/steve/webedit.py", line 80, in do_GET
return self.route_edit(path)
File "build/bdist.linux-x86_64/egg/steve/webedit.py", line 105, in route_edit
reqs = get_video_requirements()
File "build/bdist.linux-x86_64/egg/steve/util.py", line 305, in get_video_requirements
fp = open(fn)
IOError: [Errno 20] Not a directory: '/home/paul/.virtualenvs/pyvideo/local/lib/python2.7/site-packages/steve-0.5.dev0-py2.7.egg/steve/video_reqs.json'
----------------------------------------
Can you add a test for this?
@willkg , is that ok?