Opened 4 years ago

Closed 4 years ago

#18642 closed defect (fixed)

Wrong sys.path order in sagedoc

Reported by: vbraun Owned by:
Priority: major Milestone: sage-6.8
Component: user interface Keywords:
Cc: Merged in:
Authors: Volker Braun Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: e101e74 (Commits) Commit: e101e7455c8646fa67f338b1e95f95ca70bac158
Dependencies: Stopgaps:

Description (last modified by vbraun)

See https://groups.google.com/d/msg/sage-support/tlK249DKaMs/uMIzWIVpVXYJ

Steps to reproduce

$ touch conf.py
$ sage
[...]
sage: PolynomialRing?
[...]
/usr/lib/python2.7/site-packages/sage/misc/sagedoc.pyc in process_extlinks(s, embedded)
    354     oldpath = sys.path
    355     sys.path = oldpath + [os.path.join(SAGE_DOC, 'common')]
--> 356     from conf import pythonversion, extlinks
    357     sys.path = oldpath
    358     for key in extlinks:
 
ImportError: No module named conf

Change History (4)

comment:1 Changed 4 years ago by vbraun

  • Branch set to u/vbraun/wrong_sys_path_order_in_sagedoc

comment:2 Changed 4 years ago by vbraun

  • Authors set to Volker Braun
  • Commit set to e101e7455c8646fa67f338b1e95f95ca70bac158
  • Component changed from PLEASE CHANGE to user interface
  • Description modified (diff)
  • Status changed from new to needs_review
  • Type changed from PLEASE CHANGE to defect

New commits:

e101e74Put the path that we must import from FIRST

comment:3 Changed 4 years ago by jdemeyer

  • Reviewers set to Jeroen Demeyer
  • Status changed from needs_review to positive_review

comment:4 Changed 4 years ago by vbraun

  • Branch changed from u/vbraun/wrong_sys_path_order_in_sagedoc to e101e7455c8646fa67f338b1e95f95ca70bac158
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.