@@ -11,15 +11,8 @@ current_dir = os.getcwd()
|
||||
|
||||
def getVersions():
|
||||
directories = [name for name in os.listdir(current_dir) if os.path.isdir(os.path.join(current_dir, name)) and not name.startswith(".")]
|
||||
packVersions = []
|
||||
for s in directories:
|
||||
try:
|
||||
num = int(s)
|
||||
packVersions.append(num)
|
||||
except ValueError:
|
||||
pass
|
||||
packVersions.sort()
|
||||
return packVersions
|
||||
directories = sorted(directories, key=lambda x: float(x))
|
||||
return directories
|
||||
|
||||
def buildPack(dir, version):
|
||||
current_path = os.path.join(current_dir, str(version))
|
||||
|
||||
Reference in New Issue
Block a user