Skip to content

Commit c2fe4a2

Browse files
Import sys in gui/genetic_algorithm_example.py (#1230)
The script calls sys.path.append without importing sys; add the missing import.
1 parent 863b309 commit c2fe4a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gui/genetic_algorithm_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
# Displays a progress bar that indicates the amount of completion of the algorithm
99
# Displays the first few individuals of the current generation
1010

11+
import sys
1112
import os.path
1213
from tkinter import *
1314
from tkinter import ttk
1415

15-
import search
16-
1716
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
17+
import search
1818

1919
LARGE_FONT = ('Verdana', 12)
2020
EXTRA_LARGE_FONT = ('Consolas', 36, 'bold')

0 commit comments

Comments
 (0)