Support uninstalling modules after the sandbox path changed
@@ -30,6 +30,8 @@ import operator
import traceback
import codecs
+from ntpath import basename
+
import six
from distutils.util import convert_path
from fnmatch import fnmatchcase
@@ -897,6 +899,10 @@ class PackageRepository(object):
if files_installed:
for f in files_installed:
+
+ if not os.path.isfile(f) and not os.path.isdir(f):
+ f = os.path.expanduser('~/Documents/modules/{}'.format(basename(f)))
+
if os.path.isdir(f):
shutil.rmtree(f)
elif os.path.isfile(f):
