def home_dir(*paths): """ Create a path to dirs/file in OS home dir Ex: home_dir('temp', 'ex.txt') is: ~/temp/ex.txt """ home = str(Path.home()) return os.path.join(home,*paths)