Ticket #7786: trac_7783-sage-scripts.patch

File trac_7783-sage-scripts.patch, 684 bytes (added by timdumol, 10 years ago)

Preliminary work. Worksheet pages not yet done.

  • new file sage-pypkg-location

    #7783 3d graphics (viewed with jmol) do not work from the command line in sage-4.3
    
    diff -r 505395136942 -r 8f2282b54c20 sage-pypkg-location
    - +  
     1#!/usr/bin/env python
     2from __future__ import print_function
     3from pkg_resources import Requirement, working_set
     4import sys
     5
     6if __name__ == "__main__":
     7    help_message = """
     8Usage: {0} <package>
     9""".format(sys.argv[0])
     10    if len(sys.argv) < 2:
     11        print(help_message)
     12        exit(1)
     13    else:
     14        location = working_set.find(Requirement.parse(sys.argv[1])).location
     15        print(location)
     16
     17
     18
     19
     20