Closed spell02 closed 5 years ago
Hey! Sorry for that, such a bad mistake for my part. =(
About being more portable, do you mean between Linux' OSes? I know there are better ways to get the home dir when you want you app to run Windows/MacOS/Linux but, at least for now, this is a Linux-only app.
HOME=/tmp python2.7
>>> import os
>>> os.path.expanduser("~")
'/tmp'
I checked if we could avoid trolling with this, but seems to be the same.
dbx_preference
fails to open with the following error:This is because
dockbarx/common.py
importsdockbarx/log.py
, which importsdockbarx/common.py
forget_app_home_dir()
.On a different note, in
get_app_home_dir()
, the home directory is gotten withos.environ['HOME']
but I believe thatexpanduser("~")
is more portable. Don't quote me on this, but just an aside.