Changeset c48c554f3e42…
Parent 8396e1b42612…
by
Changes to one file · Browse files at c48c554f3e42 Showing diff from parent 8396e1b42612 Diff from another changeset...
@@ -7,15 +7,7 @@
"""
-import os.path, re
-
-_quotere = None
-def shellquote(s):
- global _quotere
- if _quotere is None:
- _quotere = re.compile(r'(\\*)("|\\$)')
- return '"%s"' % _quotere.sub(r'\1\1\\\2', s)
- return "'%s'" % s.replace("'", "'\\''")
+import os.path
def find_root(path):
p = os.path.isdir(path) and path or os.path.dirname(path)
@@ -52,15 +44,6 @@ return ppath + ext
return None
-
- def shell_notify(path):
- pidl, ignore = shell.SHILCreateFromPath(path, 0)
- print "notify: ", shell.SHGetPathFromIDList(pidl)
- shell.SHChangeNotify(shellcon.SHCNE_UPDATEITEM,
- shellcon.SHCNF_IDLIST | shellcon.SHCNF_FLUSHNOWAIT,
- pidl,
- None)
-
def get_icon_path(*args):
dir = get_prog_root()
icon = os.path.join(dir, "icons", *args)
@@ -162,9 +145,6 @@ return ppath
return None
- def shell_notify(path):
- pass
-
def get_icon_path(*args):
return None
|
Loading...