Skip to content

Commit

Permalink
Merge branch 'master' into updates
Browse files Browse the repository at this point in the history
  • Loading branch information
orphu committed Jan 28, 2015
2 parents 4285477 + 7259526 commit ca2eb3b
Show file tree
Hide file tree
Showing 8 changed files with 573 additions and 121 deletions.
6 changes: 6 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
TradeDangerous, Copyright (C) Oliver "kfsone" Smith, July 2014
==============================================================================

v6.8.2 Jan 27 2015
. (kfsone) Issue #148 Don't blow up horribly when tkinter is missing,
. (kfsone) Issue #149 "nav" with --via was broken,
. (kfsone) Typo correction in the maddavo splash (thanks, Stefan),
+ Stations: Stefan Morrell, Dave Ryalls, Jason Zions

v6.8.1 Jan 25 2015
. (kfsone) Additional rules to prevent data pollution (ocr derp protection),
. (kfsone) Support for maddavo's "3 hour" prices file,
Expand Down
10 changes: 9 additions & 1 deletion cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@
LANOER |
G[O0][O0]([RW]|VV)[O0I]N |
\bSPE([O0][DO0]|[DO0][O0])ING\b |
\bARCHIMEOES\b
\bARCHIMEOES\b |
\bH[O0D]L[O0]ING |
\bM[O0D]HMAN[O0] |
\b[O0]ANA\b |
\bALEKSAN[O0]R[O0D]V\b |
\bCH[0D]MSKY\b |
\b[O0]IESEL\b |
[O0]{3} |
SCHMI[O0]T
)''', flags=re.X)


Expand Down
11 changes: 8 additions & 3 deletions commands/import_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
import math
import plugins
import re
import tkinter
import tkinter.filedialog as tkfd
import transfers

try:
import tkinter
import tkinter.filedialog as tkfd
hasTkInter = True
except ImportError:
hasTkInter = False

######################################################################
# Parser config

Expand Down Expand Up @@ -106,7 +111,7 @@ def run(results, cmdenv, tdb):

# If the filename specified was "-" or None, then go ahead
# and present the user with an open file dialog.
if not cmdenv.filename:
if not cmdenv.filename and hasTkInter:
tk = tkinter.Tk()
tk.withdraw()
filetypes = (
Expand Down
6 changes: 3 additions & 3 deletions commands/nav_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def run(results, cmdenv, tdb):
hops = [ [ srcSystem, None ] ]
if cmdenv.viaPlaces:
for hop in cmdenv.viaPlaces:
hops[0][1] = hop
hops.insert(0, [hop, None])
hops[0][1] = dstSystem
hops[-1][1] = hop
hops.append([hop, None])
hops[-1][1] = dstSystem

avoiding = [
avoid for avoid in cmdenv.avoidPlaces
Expand Down
Loading

0 comments on commit ca2eb3b

Please sign in to comment.