Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: subprocess call cannot find the file specified
Post: RE: subprocess call cannot find the file specified

Use the cwd input on your sub-process method. subprocess.run("exit 1", shell=True, check=True, cwd='./directory-here')check out the docs for full info here: https://docs.python.org/3/library/subproce...
yaythomas General Coding Help 6 16,386 Oct-15-2020, 10:44 AM
    Thread: What IDE do you use?
Post: RE: What IDE do you use?

depending on what I'm feeling like on the day, either - Visual Studio Code, with the various Python plugins. - Atom Neither is perfect. But they're the best price (free!) and honestly, it's not as i...
yaythomas News and Discussions 4 2,222 Sep-30-2020, 08:34 PM
    Thread: Changing to new Python formatting example
Post: RE: Changing to new Python formatting example

use f-string. they're more readable, and I'm pretty sure a bit more performant (but don't quote me on that). UNLESS you are in the logger library. In this case, use the old style. import logging log...
yaythomas General Coding Help 3 1,992 Sep-22-2020, 07:36 PM
    Thread: free open-source automation task-runner project
Post: RE: free open-source automation task-runner projec...

thanks Gribouillis, much appreciated! The main inspiration for pypyr was. . . whenever I was writing automation scripts, typically it'd start off in bash, and then at some point of complexity you end...
yaythomas Code sharing 8 5,598 Sep-21-2020, 01:02 PM
    Thread: free open-source automation task-runner project
Post: RE: free open-source automation task-runner projec...

best wishes, hope you succeed! this approach is using a low-code/no-code solution, so since coding isn't your "day job" per se, I thought it might be useful. I'd be very happy to step you through th...
yaythomas Code sharing 8 5,598 Sep-21-2020, 10:28 AM
    Thread: free open-source automation task-runner project
Post: RE: free open-source automation task-runner projec...

(Sep-19-2020, 12:21 PM)3SG14 Wrote: My code in pyhthon right now has five for loops nested and its making me very difficult to store and manage output files according to number of simulation. Can p...
yaythomas Code sharing 8 5,598 Sep-20-2020, 03:00 AM
    Thread: free open-source automation task-runner project
Post: RE: free open-source automation task-runner projec...

(Sep-13-2020, 06:49 PM)jimy_byerley Wrote: It looks like systemd on linux, isn't it ? hey, thanks for checking out the project, I much appreciate it! haha, I can't quite tell if you mean "it looks ...
yaythomas Code sharing 8 5,598 Sep-16-2020, 09:35 AM
    Thread: free open-source automation task-runner project
Post: free open-source automation task-runner project

this is an open-source taskrunner cli & api automation tool. All lovingly made with Python! https://github.com/pypyr/pypyr use this if your bash or even python scripts start getting out of hand....
yaythomas Code sharing 8 5,598 Sep-10-2020, 10:30 AM

User Panel Messages

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