Oct-31-2019, 10:08 AM
for proot you are using os.getcwd()
do you want the folder of the script as proot ?
try that and see if the results are different
gives
I use in Linux to get localized user folders
do you want the folder of the script as proot ?
try that and see if the results are different
import os import sys proot = os.getcwd() proot2 = os.path.dirname(sys.argv[0]) print(proot) print(proot2)
Quote:music = os.path.join(os.environ["HOME"], "Music")
gives
Output:/home/username/Music
if you use localized folder names (in Linux) it will not workI use in Linux to get localized user folders
from gi.repository import GLib music = GLib.get_user_special_dir(GLib.USER_DIRECTORY_MUSIC) print(music)