JanuaryDesk commited on
Commit
a6e2a64
1 Parent(s): 9494f28

Fix misspelled command

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,7 +3,7 @@
3
  import subprocess
4
  import os
5
 
6
- dotnet_check_command = "dotnet -list-sdk"
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("dotnet -list-sdk"))
15
  except:
16
  print(os.environ["PATH"])
17
 
@@ -24,7 +24,7 @@ except:
24
 
25
  print(os.environ["PATH"])
26
 
27
- os.system("dotnet -list-sdk")
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