Gregniuki commited on
Commit
965a7ed
·
verified ·
1 Parent(s): ab77050

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- return "http://localhost:7860/mario" # Local URL (Change port if needed)
19
- # Install the game files on startup
 
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