Skip to content

Commit

Permalink
Change order of pastebin.d location to end with CWD. Sort pastebin li…
Browse files Browse the repository at this point in the history
…sting.
  • Loading branch information
stgraber committed Feb 13, 2012
1 parent 171766a commit 7b57ad4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ try:
# Files found later override files found earlier.
pastebind = {}
for confdir in ['/usr/share/pastebin.d','/etc/pastebin.d','/usr/local/etc/pastebin.d',
os.path.join(os.path.dirname(__file__), 'pastebin.d'),
os.path.expanduser('~/.pastebin.d')]:
os.path.expanduser('~/.pastebin.d'),
os.path.join(os.path.dirname(__file__), 'pastebin.d')]:
try:
confdirlist = os.listdir(confdir)
except OSError:
Expand Down Expand Up @@ -264,7 +264,7 @@ try:
jabberid = opt[1]
elif opt[0] == "-l":
print _("Supported pastebins:")
for pastebin in pastebind:
for pastebin in sorted(pastebind):
print "- %s" % pastebin
sys.exit(0)
elif opt[0] == "-t":
Expand Down

0 comments on commit 7b57ad4

Please sign in to comment.