Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,13 @@ def install_flask():
|
|
13 |
install_flask()
|
14 |
|
15 |
# Clone the Mario game repository
|
|
|
|
|
16 |
def install_package():
|
17 |
subprocess.run(["git", "clone", "https://github.com/reruns/mario.git", "mario"], check=True)
|
18 |
-
|
19 |
-
|
|
|
20 |
install_package()
|
21 |
# Now import Flask
|
22 |
from flask import Flask, send_from_directory
|
|
|
13 |
install_flask()
|
14 |
|
15 |
# Clone the Mario game repository
|
16 |
+
import os
|
17 |
+
|
18 |
def install_package():
|
19 |
subprocess.run(["git", "clone", "https://github.com/reruns/mario.git", "mario"], check=True)
|
20 |
+
index_html_path = os.path.abspath("mario/index.html") # Get absolute path
|
21 |
+
print(f"Index.html is located at: {index_html_path}") # Debugging
|
22 |
+
return index_html_path
|
23 |
install_package()
|
24 |
# Now import Flask
|
25 |
from flask import Flask, send_from_directory
|