L
L
lil.fxrrx2021-09-08 17:38:15
Python
lil.fxrrx, 2021-09-08 17:38:15

Opening external file in python script, implementation?

How can someone else's file be opened directly from the first python script? What would happen is not reading the file, but the opening itself as a process

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hawchik_dev, 2021-09-26
@Hawchik_dev

Try it:

from os import system
from threading import Thread
def open():
    os.system("command in cmd")

thread = Thread(target=open, args=())
thread.start()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question