sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
252 stars 240 forks source link

Sugar would not start when a file new.py was present #893

Open quozl opened 4 years ago

quozl commented 4 years ago

When a user had a file new.py in home directory containing an import that could not be satisfied, Sugar would not start. This was because Xapian was imported by Sugar, and Xapian had a "from new import something".

srevinsaju commented 4 years ago

Tested, I couldn't reproduce the error. The paths did not include the home directory, maybe, the Xapian package got updated to fix the error.

quozl commented 4 years ago

I was able to reproduce. The Python path included the current working directory, which when Sugar starts is the home directory. If you think Xapian was changed, please find the change in Xapian.