Skip to content
Snippets Groups Projects

Setup silecs environments

Merged m.nabywaniec requested to merge 64-silecs-env-setup into master
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
+ 0
3
@@ -12,13 +12,10 @@ def get_available_versions(silecs_deploy_dir):
"""Find available versions of silecs in SILECS_DIR"""
subfolders = [f.name for f in os.scandir(silecs_deploy_dir) if os.path.isdir(f)]
available_versions = []
major_versions = []
for f in subfolders:
try:
v = version.Version(f)
available_versions.append(f)
if not major in major_versions:
major_versions.append(major)
except version.InvalidVersion:
pass
Loading