FrancescoLR commited on
Commit
3291a42
·
verified ·
1 Parent(s): 5e7b2d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -1,13 +1,16 @@
1
- import pkg_resources
2
  import sys
3
  import subprocess
4
 
5
- # Print installed packages
6
- installed_packages = [pkg.key for pkg in pkg_resources.working_set]
7
- print("Installed packages:", installed_packages)
8
-
9
- # Alternatively, print as a list
10
  subprocess.run([sys.executable, "-m", "pip", "list"])
 
 
 
 
 
 
 
 
11
 
12
 
13
 
 
 
1
  import sys
2
  import subprocess
3
 
4
+ # Print installed packages and paths
 
 
 
 
5
  subprocess.run([sys.executable, "-m", "pip", "list"])
6
+ print("Python paths:", sys.path)
7
+
8
+ try:
9
+ import mednextv1
10
+ print("MedNeXt Path:", mednextv1.__file__)
11
+ except ModuleNotFoundError:
12
+ print("ERROR: mednextv1 not found!")
13
+
14
 
15
 
16