"." is in sys.path unless others have write permissions on the current directory.
On Sunday, May 22, 2016 at 3:55:23 PM UTC+2, Jeroen Sijsling wrote: > > Dear all, > > (I also posted this about a quarter of an hour ago, but I now think that I > must have done something wrong. I am sorry if this turns out to be a double > post.) > > For some reason I placed a file called string.py in the directory where I > normally run Sage. I then ran Sage in the usual way, without specifying > this file, and saw the result of evaluating it pass by before the Sage > prompt appeared. I then tested that it also works after replacing the > contents of string.py with > > import shutil > shutil.rmtree("dir") > > in the sense that once run there is no more directory dir. This does not > just happen on my own machine; I have logged in at some other places in the > world where I have an account, and there the same thing occurs, whether the > version is 7.1 or 7.2. It seems risky. > > The side effects also occurs after renaming to math.py, but renaming to > string.sage removes them. > > Best regards, > Jeroen Sijsling > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.