Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Subprocess.Popen() not working when reading file path from csv file
Post: RE: Subprocess.Popen() not working when reading fi...

Thanks for all your help. When printing the path before the subprocess.popen I noticed that in the file paths for the two programs where it did not work the space between 'Program' and 'Files' was re...
herwin General Coding Help 13 14,619 May-07-2021, 03:26 PM
    Thread: Subprocess.Popen() not working when reading file path from csv file
Post: RE: Subprocess.Popen() not working when reading fi...

Thanks ! Most now works using the code you mention, but not all. the csv file has these lines: C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe C:\\Program Files\\Google\\Chr...
herwin General Coding Help 13 14,619 May-07-2021, 12:50 PM
    Thread: Subprocess.Popen() not working when reading file path from csv file
Post: RE: Subprocess.Popen() not working when reading fi...

(May-04-2021, 03:42 PM)Gribouillis Wrote: Have you tried Popen([prg]) instead of Popen(prg) ? The less ambiguous way to call Popen() is to pass a list of the arguments. Thanks. Yes, I did. Unfortun...
herwin General Coding Help 13 14,619 May-04-2021, 08:53 PM
    Thread: Subprocess.Popen() not working when reading file path from csv file
Post: RE: Subprocess.Popen() not working when reading fi...

(May-04-2021, 09:54 AM)snippsat Wrote: (May-03-2021, 07:51 PM)herwin Wrote: gives the above-mentioned error code (if the file path has a blank space it). In the new code print(prg)Do print(rep...
herwin General Coding Help 13 14,619 May-04-2021, 03:30 PM
    Thread: Subprocess.Popen() not working when reading file path from csv file
Post: RE: Subprocess.Popen() not working when reading fi...

(May-04-2021, 08:28 AM)ibreeden Wrote: (May-03-2021, 07:51 PM)herwin Wrote: In the new code print(prg)will give: Output:C:\\Program Files\\Google\\Chrome\\Application\\ch...
herwin General Coding Help 13 14,619 May-04-2021, 03:26 PM
    Thread: Subprocess.Popen() not working when reading file path from csv file
Post: RE: Subprocess.Popen() not working when reading fi...

(May-03-2021, 09:15 PM)Gribouillis Wrote: Try subprocess.Popen([prg]) perhaps. Thank you for your answer. Unfortunately the problem remains the same
herwin General Coding Help 13 14,619 May-04-2021, 03:21 PM
    Thread: Subprocess.Popen() not working when reading file path from csv file
Post: Subprocess.Popen() not working when reading file p...

I am a beginner at python coding. I wrote a simple code that lists a number of programs and asks the user to choose one of the programs. It will then open a website with the version history of that p...
herwin General Coding Help 13 14,619 May-03-2021, 07:51 PM

User Panel Messages

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