Select to view content in your preferred language

Create a list of paths to images

844
1
Jump to solution
12-14-2018 01:29 PM
JaredPilbeam2
MVP Regular Contributor

How would I create a list from a handful of images in a folder? I need the full file path to each one included. For example,

Image files:

C:\data\images\image.jpeg

C:\data\images\image.jpeg2

C:\data\images\image.jpeg3

How do I avoid using the full path for each element:

list = [r'C:\data\images\image.jpeg', r'C:\data\images\image.jpeg2', r'C:\data\images\image.jpeg3']

 

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
1 Reply
DanPatterson_Retired
MVP Emeritus