Skip to content

Commit

Permalink
fixed file paths
Browse files Browse the repository at this point in the history
Don't need to navigate up seen as we're not changing the home directory
for imports thanks to @jacebrowning.
  • Loading branch information
theovoss committed May 17, 2014
1 parent ce7b26e commit 7db4105
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bogglesolver/solve_boggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class solve_boggle:
Then it searches the board for all valid words.
"""

def __init__(self, boggle_array, columns, rows, dict_path=os.path.join("..", "..", "docs", "twl06.txt")):
def __init__(self, boggle_array, columns, rows, dict_path=os.path.join("docs", "twl06.txt")):
self.e_dict_path = dict_path
self.e_dict = e_dict()
self.e_dict.read_dictionary(self.e_dict_path)
Expand Down
4 changes: 2 additions & 2 deletions bogglesolver/test/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from bogglesolver.boggle_board import boggle
from bogglesolver.solve_boggle import solve_boggle

f_name = os.path.join("..", "..", "docs", "twl06.txt")
test_name = os.path.join("..", "..", "docs", "test_words.txt")
f_name = os.path.join("docs", "twl06.txt")
test_name = os.path.join("docs", "test_words.txt")


class test_everything(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion bogglesolver/test/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from bogglesolver.boggle_board import boggle
from bogglesolver.solve_boggle import solve_boggle

test_name = os.path.join("..", "..", "docs", "test_words.txt")
test_name = os.path.join("docs", "test_words.txt")


class test_solve_boggle(unittest.TestCase):
Expand Down

0 comments on commit 7db4105

Please sign in to comment.