Spaces:
Runtime error
Runtime error
Commit
·
a6e2a64
1
Parent(s):
9494f28
Fix misspelled command
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
import subprocess
|
4 |
import os
|
5 |
|
6 |
-
dotnet_check_command = "dotnet
|
7 |
dotnet_install_commands = [
|
8 |
"wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh",
|
9 |
"chmod +x ./dotnet-install.sh",
|
@@ -11,7 +11,7 @@ dotnet_install_commands = [
|
|
11 |
]
|
12 |
|
13 |
try:
|
14 |
-
print(subprocess.check_output(
|
15 |
except:
|
16 |
print(os.environ["PATH"])
|
17 |
|
@@ -24,7 +24,7 @@ except:
|
|
24 |
|
25 |
print(os.environ["PATH"])
|
26 |
|
27 |
-
os.system(
|
28 |
# print(subprocess.check_output("dotnet -list-sdk"))
|
29 |
|
30 |
import gradio as gr
|
|
|
3 |
import subprocess
|
4 |
import os
|
5 |
|
6 |
+
dotnet_check_command = "dotnet --list-sdks"
|
7 |
dotnet_install_commands = [
|
8 |
"wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh",
|
9 |
"chmod +x ./dotnet-install.sh",
|
|
|
11 |
]
|
12 |
|
13 |
try:
|
14 |
+
print(subprocess.check_output(dotnet_check_command, shell=True))
|
15 |
except:
|
16 |
print(os.environ["PATH"])
|
17 |
|
|
|
24 |
|
25 |
print(os.environ["PATH"])
|
26 |
|
27 |
+
os.system(dotnet_check_command)
|
28 |
# print(subprocess.check_output("dotnet -list-sdk"))
|
29 |
|
30 |
import gradio as gr
|