How to prevent subprocess from opening the multiple windows? /u/anonymous_anki Python Education

Hello everyone, I am working on a tree based file manager kind of project. So, for it I need to open folders and I am using the subprocess module to open files. The problem is if i change the folder_path, the subprocess opens a new file manager window. But I want to open the folders into the same window.

How can prevent the subprocess from opening the mulitple windows and open the folders in the same window?

Thanks.

# subprocess.Popen(['xdg-open', folder_path]) 

submitted by /u/anonymous_anki
[link] [comments]

​r/learnpython Hello everyone, I am working on a tree based file manager kind of project. So, for it I need to open folders and I am using the subprocess module to open files. The problem is if i change the folder_path, the subprocess opens a new file manager window. But I want to open the folders into the same window. How can prevent the subprocess from opening the mulitple windows and open the folders in the same window? Thanks. # subprocess.Popen([‘xdg-open’, folder_path]) submitted by /u/anonymous_anki [link] [comments] 

Hello everyone, I am working on a tree based file manager kind of project. So, for it I need to open folders and I am using the subprocess module to open files. The problem is if i change the folder_path, the subprocess opens a new file manager window. But I want to open the folders into the same window.

How can prevent the subprocess from opening the mulitple windows and open the folders in the same window?

Thanks.

# subprocess.Popen(['xdg-open', folder_path]) 

submitted by /u/anonymous_anki
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *