Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How can I Open and close .py file from python scripts
Post: RE: How can I Open and close .py file from python ...

so if I use popen.kill() It can close the specific python file name right? I mean It will close only test1.py,test2.py and test3.py Right?
SayHiii General Coding Help 9 5,732 Dec-13-2019, 01:11 AM
    Thread: How can I Open and close .py file from python scripts
Post: RE: How can I Open and close .py file from python ...

I'm using Popen if mybuffer == "b'Python'": print("Python File Opening") Popen('python MQTT_Close_Program.py')
SayHiii General Coding Help 9 5,732 Dec-12-2019, 08:02 AM
    Thread: How can I Open and close .py file from python scripts
Post: RE: How can I Open and close .py file from python ...

I working on windows and when I open python file in every file name for example I name python file test1.py , test2.py and test3.py when I run them in the same time. And I saw them in the process It's...
SayHiii General Coding Help 9 5,732 Dec-12-2019, 02:43 AM
    Thread: How can I Open and close .py file from python scripts
Post: RE: How can I Open and close .py file from python ...

I want to close the specific python file for example: In my process was running python file A.py, B.py, C.py I want to know how can I close A.py, B.py, C.py in sequent. ? Thank you for your reply **...
SayHiii General Coding Help 9 5,732 Dec-11-2019, 04:47 AM
    Thread: How can I Open and close .py file from python scripts
Post: How can I Open and close .py file from python scri...

Here is my code: if mybuffer == "b'Python'": print("Python File Opening") thislist = [r'"py_exe.py"', r'"MQTT_pub.py"'] #add path here for x in thislist: print(...
SayHiii General Coding Help 9 5,732 Dec-11-2019, 01:36 AM
    Thread: how to open program file .exe from list
Post: RE: how to open program file .exe from list

Thank you
SayHiii General Coding Help 2 2,430 Dec-11-2019, 01:28 AM
    Thread: how to open program file .exe from list
Post: how to open program file .exe from list

here is my code if mybuffer == "b'Open'": print("Program is Opening") your_Po = (r'C:\Qt\5.13.1\mingw73_32\bin\designer.exe') fp = os.popen(your_Po) #use os.popen for get ...
SayHiii General Coding Help 2 2,430 Dec-10-2019, 08:25 AM
    Thread: How to clean session mqtt
Post: How to clean session mqtt

import paho.mqtt.client as mqtt import subprocess import os import time def on_connect(client, userdata, flags, rc): print ("Connected with Code :" +str(rc)) print ("Connected IP: " + Ip_conn...
SayHiii General Coding Help 0 1,997 Dec-09-2019, 07:56 AM

User Panel Messages

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