Today I learned that #Python's os library has a Windows specific function called "os.startfile" that opens any file or folder with its default application. Specifying a folder path for example opens an explorer window pointed at that location.
Link: docs.python.org/3/library/os.h…
os — Miscellaneous operating system interfaces
Source code: Lib/os.py This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see open(), if you want to manipulate paths, s...Python documentation
Dieser Beitrag wurde bearbeitet. (1 Tag her)