Ticket #11503: trac_11503_path_fix.patch

File trac_11503_path_fix.patch, 781 bytes (added by gutow, 11 years ago)

path fix for flask

  • flask_version/base.py

    # HG changeset patch
    # User Jonathan Gutow <gutow@uwosh.edu>
    # Date 1308240961 25200
    # Node ID 9c86d0306d8b5a1a10f7015bb40a27e57d2b7d2a
    # Parent  2de1ac9f84ee821b197bdf8563178d9206fe49a8
    trac 11503 - flask path fix for Jmol move
    
    diff -r 2de1ac9f84ee -r 9c86d0306d8b flask_version/base.py
    a b  
    2424        self.add_static_path('/javascript', DATA)
    2525        self.add_static_path('/static', DATA)
    2626        self.add_static_path('/java', DATA)
    27         import mimetypes
     27        self.add_static_path('/java/jmol', os.path.join(os.environ["SAGE_ROOT"],"local","share","jmol"))
     28        import mimetypes
    2829        mimetypes.add_type('text/plain','.jmol')
    2930
    3031