~ubuntu-branches/debian/wheezy/calibre/wheezy

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/oeb/display/test/test.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-01-07 11:22:54 UTC
  • mfrom: (29.4.10 precise)
  • Revision ID: package-import@ubuntu.com-20120107112254-n1syr437o46ds802
Tags: 0.8.34+dfsg-1
* New upstream version. (Closes: #654751)
* debian/rules: Do not install calibre copy of chardet; instead, add
  build/binary python-chardet dependency.
* Add disable_plugins.py: Disable plugin dialog. It uses a totally
  non-authenticated and non-trusted way of installing arbitrary code.
  (Closes: #640026)
* debian/rules: Install with POSIX locale, to avoid installing translated
  manpages into the standard locations. (Closes: #646674)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
3
 
from __future__ import (unicode_literals, division, absolute_import,
4
 
                        print_function)
5
 
 
6
 
__license__   = 'GPL v3'
7
 
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
8
 
__docformat__ = 'restructuredtext en'
9
 
 
10
 
import os
11
 
 
12
 
try:
13
 
    from calibre.utils.coffeescript import serve
14
 
except ImportError:
15
 
    import init_calibre
16
 
    if False: init_calibre, serve
17
 
    from calibre.utils.coffeescript import serve
18
 
 
19
 
 
20
 
def run_devel_server():
21
 
    os.chdir(os.path.dirname(__file__))
22
 
    serve(['../cfi.coffee', 'cfi-test.coffee'])
23
 
 
24
 
if __name__ == '__main__':
25
 
    run_devel_server()
26