Python Forum
Problem with assigning directory of a file based on cell name
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with assigning directory of a file based on cell name
#2
something like:
>>> filelist = []
>>> with open('c_name.txt') as fp:                   
...     for line in fp:                              
...         filelist.append(line.strip())            
...                                                  
>>> filelist                                         
['ce_ll_sum', 'ce_ls_sub', 'ce_ll_add', 'ce_ls_clk'] 
>>>                                                  
Reply


Messages In This Thread
RE: Problem with assigning directory of a file based on cell name - by Larz60+ - Jul-03-2018, 10:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  FileNotFoundError: [Errno 2] No such file or directory although the file exists Arnibandyo 0 1,294 Aug-12-2024, 09:11 AM
Last Post: Arnibandyo
  "[Errno 2] No such file or directory" (.py file) IbrahimBennani 13 7,261 Jun-17-2024, 12:26 AM
Last Post: AdamHensley
  Copy Paste excel files based on the first letters of the file name Viento 2 1,696 Feb-07-2024, 12:24 PM
Last Post: Viento
  Color a table cell based on specific text Creepy 11 5,670 Jul-27-2023, 02:48 PM
Last Post: deanhystad
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 8,555 Jun-27-2023, 01:17 PM
Last Post: diver999
  Split pdf in pypdf based upon file regex standenman 1 4,784 Feb-03-2023, 12:01 PM
Last Post: SpongeB0B
  Extract file only (without a directory it is in) from ZIPIP tester_V 1 4,525 Jan-23-2023, 04:56 AM
Last Post: deanhystad
  Problem with print variable in print.cell (fpdf) muconi 0 1,215 Dec-25-2022, 02:24 PM
Last Post: muconi
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 2,149 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  no such file or directory in SFTP saisankalpj 2 2,795 Nov-25-2022, 11:07 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020