From c9ec144ed5c7d551d3c560950d725a1b5d3c6df8 Mon Sep 17 00:00:00 2001 From: Mehrdad Moradi Date: Fri, 20 Aug 2021 11:44:39 +0200 Subject: [PATCH] Update genetic_algorithm_example.py fixing error: import sys --- gui/genetic_algorithm_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/genetic_algorithm_example.py b/gui/genetic_algorithm_example.py index c987151c8..c4f1219f8 100644 --- a/gui/genetic_algorithm_example.py +++ b/gui/genetic_algorithm_example.py @@ -8,13 +8,13 @@ # Displays a progress bar that indicates the amount of completion of the algorithm # Displays the first few individuals of the current generation +import sys import os.path from tkinter import * from tkinter import ttk -import search - sys.path.append(os.path.join(os.path.dirname(__file__), '..')) +import search LARGE_FONT = ('Verdana', 12) EXTRA_LARGE_FONT = ('Consolas', 36, 'bold')