Checks if XDA_DATA_HOME in os.environ before use
authorMason Larobina <mason.larobina@gmail.com>
Tue, 23 Jun 2009 08:06:30 +0000 (16:06 +0800)
committerMason Larobina <mason.larobina@gmail.com>
Tue, 23 Jun 2009 08:06:30 +0000 (16:06 +0800)
commitb58b53ec93587bd9ddd8b2ec2fed63607ee8662b
tree31aa02e58ab32bbf4077f27603513cb22f4b0178
parent7335fa2d650c4a3378484dfbc71ff572b5613b27
Checks if XDA_DATA_HOME in os.environ before use

Additionally when XDA_DATA_HOME doesn't exist the cookie jar location
defaults to os.environ["HOME"] + '.local/share/uzbl/cookies.txt'
however when these strings are concatenated they are missing the path
seperator '/'. Problem solved by using the builtin os.path.join to join the
environ path and jar location.

On branch experimental:
Changes to be committed:

        modified:   examples/data/uzbl/scripts/cookies.py
examples/data/uzbl/scripts/cookies.py