Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python cmd function call from script
Post: RE: Python cmd function call from script

(Feb-14-2017, 05:58 PM)buran Wrote: yes, I think you need to specify the full path in this case Also, looking at the script,  here is some code that should allow to use it to erase, write and verif...
John_O General Coding Help 10 9,923 Feb-18-2017, 04:45 PM
    Thread: Python cmd function call from script
Post: RE: Python cmd function call from script

I missed that. Thanks. But in case if sthdbg.bin is on other location than script, how can I add the path?  Do I need to add absolute path - in my case '/home/projects/mywork/sthdbg.bin'?
John_O General Coding Help 10 9,923 Feb-14-2017, 05:45 PM
    Thread: Python cmd function call from script
Post: RE: Python cmd function call from script

Thank you for all your answer. I found one issue if I use subprocess function in combination with stm32loader. So, I have stm32loader.py script and additional file (sthdbg.bin) in mwork directory ->...
John_O General Coding Help 10 9,923 Feb-14-2017, 05:09 PM
    Thread: Python cmd function call from script
Post: RE: Python cmd function call from script

(Feb-14-2017, 01:46 AM)Ofnuts Wrote: Hard to answer without looking at the code in fun_name1.py. If it is written adequately, you can import it as a Python module and call the functions it contains ...
John_O General Coding Help 10 9,923 Feb-14-2017, 05:23 AM
    Thread: Python cmd function call from script
Post: Python cmd function call from script

Dear all, I found a function which is callable from command line. Now I need to add this function to my script. How can I do this? So if I use CMD, call looks like this -  sudo python fun_name1.py ...
John_O General Coding Help 10 9,923 Feb-13-2017, 09:35 PM

User Panel Messages

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