Ticket #12719: 12719-5.4rc1.patch

File 12719-5.4rc1.patch, 781 bytes (added by jason, 9 years ago)
  • sage/misc/interpreter.py

    # HG changeset patch
    # User Jason Grout <jason.grout@drake.edu>
    # Date 1352813105 21600
    # Node ID 6c6e8f744d2fbc587df26219cbe6ec57a4fdf933
    # Parent  711ad20911b8b6214b9898da5f2e35fd3366264a
    IPython doesn't need to change directories, and even has an error when it does.
    
    diff --git a/sage/misc/interpreter.py b/sage/misc/interpreter.py
    a b  
    677677        # so that we don't overwrite the traitlet attribute
    678678        self.verbose_crash = True
    679679
    680         # what is the purpose behind this??
    681         os.chdir(os.environ["CUR"])
    682 
    683680        # Shell initialization
    684681        self.shell = SageInteractiveShell.instance(config=self.config,
    685682                        display_banner=False, profile_dir=self.profile_dir,