Skip to content

Commit

Permalink
Prefer os.path.expanduser to manual handling of $HOME.
Browse files Browse the repository at this point in the history
This may make it work (better) on Windows, assuming anybody wants to try.
  • Loading branch information
mgedmin committed Dec 30, 2009
1 parent be37955 commit 8154d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ try:

defaultPB = "http://pastebin.com" #Default pastebin
version = "0.11.2" #Version number to show in the usage
configfile = os.environ.get('HOME') + "/.pastebinit.xml"
configfile = os.path.expanduser("~/.pastebinit.xml")

# Custom urlopener to handle 401's
class pasteURLopener(urllib.FancyURLopener):
Expand Down

0 comments on commit 8154d95

Please sign in to comment.