This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
user = os.environ['USERNAME']#To get the user's username | |
#storing the default spotlight lockscreen images in a variable named soure_folder | |
source_folder=r'C:\Users\\'+user+'\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets' | |
#prompt to get custom destination path from user | |
destination_folder = input('Do you want to choose custom destination folder? if yes provide the path else press enter') | |
if len(destination_folder)<1 and not os.path.isdir(destination_folder): |