mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Bump cherrypy from 18.8.0 to 18.9.0 (#2266)
* Bump cherrypy from 18.8.0 to 18.9.0 Bumps [cherrypy](https://github.com/cherrypy/cherrypy) from 18.8.0 to 18.9.0. - [Changelog](https://github.com/cherrypy/cherrypy/blob/main/CHANGES.rst) - [Commits](https://github.com/cherrypy/cherrypy/compare/v18.8.0...v18.9.0) --- updated-dependencies: - dependency-name: cherrypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update cherrypy==18.9.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
cfefa928be
commit
faef9a94c4
673 changed files with 159850 additions and 11583 deletions
58
lib/win32comext/shell/demos/dump_link.py
Normal file
58
lib/win32comext/shell/demos/dump_link.py
Normal file
|
@ -0,0 +1,58 @@
|
|||
# dump_link.py - dumps information about shell shortcuts
|
||||
#
|
||||
import glob
|
||||
import os
|
||||
import sys
|
||||
|
||||
import pythoncom
|
||||
from win32com.shell import shell, shellcon
|
||||
from win32com.storagecon import *
|
||||
|
||||
|
||||
def DumpLink(fname):
|
||||
shellLink = pythoncom.CoCreateInstance(
|
||||
shell.CLSID_ShellLink,
|
||||
None,
|
||||
pythoncom.CLSCTX_INPROC_SERVER,
|
||||
shell.IID_IShellLink,
|
||||
)
|
||||
persistFile = shellLink.QueryInterface(pythoncom.IID_IPersistFile)
|
||||
persistFile.Load(fname, STGM_READ)
|
||||
shellLink.Resolve(0, shell.SLR_ANY_MATCH | shell.SLR_NO_UI)
|
||||
fname, findData = shellLink.GetPath(0)
|
||||
print("Filename:", fname, ", UNC=", shellLink.GetPath(shell.SLGP_UNCPRIORITY)[0])
|
||||
print("Description:", shellLink.GetDescription())
|
||||
print("Working Directory:", shellLink.GetWorkingDirectory())
|
||||
print("Icon:", shellLink.GetIconLocation())
|
||||
|
||||
|
||||
def FavDumper(nothing, path, names):
|
||||
# called by os.path.walk
|
||||
for name in names:
|
||||
print(name, end=" ")
|
||||
try:
|
||||
DumpLink(name)
|
||||
except pythoncom.com_error:
|
||||
print(" - not a link")
|
||||
|
||||
|
||||
def DumpFavorites():
|
||||
favfold = str(shell.SHGetSpecialFolderPath(0, shellcon.CSIDL_FAVORITES))
|
||||
print("Your favourites are at", favfold)
|
||||
os.path.walk(favfold, FavDumper, None)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) > 1:
|
||||
for fspec in sys.argv[1:]:
|
||||
files = glob.glob(fspec)
|
||||
if files:
|
||||
for file in files:
|
||||
print(file)
|
||||
DumpLink(file)
|
||||
print()
|
||||
else:
|
||||
print("Can not find", fspec)
|
||||
else:
|
||||
print("Dumping your favorites folder!")
|
||||
DumpFavorites()
|
Loading…
Add table
Add a link
Reference in a new issue