James McCool
commited on
Commit
·
6bf2ff4
1
Parent(s):
3344e99
Update path determination for Go binary in NHL lineup generator to reflect new directory structure.
Browse files
src/sports/nhl_functions.py
CHANGED
|
@@ -95,8 +95,8 @@ def run_go_classic_lineup_generator(site="DK", sport="NHL"):
|
|
| 95 |
st.write(f"Starting Go {sport} lineup generation...")
|
| 96 |
start_time = time.time()
|
| 97 |
|
| 98 |
-
# Determine the path to the Go binary (from /app directory)
|
| 99 |
-
app_dir = os.path.dirname(os.path.
|
| 100 |
|
| 101 |
if site == "DK":
|
| 102 |
go_binary = os.path.join(app_dir, "dk_nhl_go", "NHL_seed_frames")
|
|
|
|
| 95 |
st.write(f"Starting Go {sport} lineup generation...")
|
| 96 |
start_time = time.time()
|
| 97 |
|
| 98 |
+
# Determine the path to the Go binary (from /app/func directory)
|
| 99 |
+
app_dir = os.path.dirname(os.path.abspath(__file__)) # Now at /app/func
|
| 100 |
|
| 101 |
if site == "DK":
|
| 102 |
go_binary = os.path.join(app_dir, "dk_nhl_go", "NHL_seed_frames")
|