How to save the value from zenity --file-selection --directory?

I want to write an application, and for this I need to use the zenity --file-selection --directory command to select the directory I need. When I want to save a value, then my variable is zero. I know that this is the correct operation of the program, but I need the value itself, not the execution status. Please help me.

<code>import os

path = os.system("zenity --file-selection --directory")




/media/amletixq/AmletixQ-fileSys/amletixq/Personal Room/pythonProject


0 ответов

Другие вопросы по тегам