what am i doing wrong here? i want to use path as my path instead of copying my current folder path's.
import glob
path = os.getcwd()
glob.glob(path*'.jpg')
CodePudding user response:
I think what you are looking for is this:
import glob
path = os.getcwd()
glob.glob(f'{path}/*.jpg')