from glob import glob
from os import cwd
from os.path import join, split, splitext
from frames import execute

MANIFEST = {                                                     # Declare the algorithm info.
  'doc': 'Loads all clouds of given format from the CWD.',
  'author': 'John Doe', 
  'version': '0.6',
  'multithreaded': False
}
DEF_IN_PARAMS['cloud_extension'] = 'copsxml'                     # Declare default input params.

if __name__ == '__main__':                                       # Run the script if it's not imported but executed.
  cloud_extension = IN_PARAMS['cloud_extension']                 # Fetch input params.
  cloud_ids = []
  
  for path in glob(join(cwd(), '*.'+cloud_extension)):
    name = split(splitext(path)[0])[-1]
    cloud_id = execute('import_cloud', path, name)
    cloud_ids.append(cloud_id)
  
  OUT_PARAMS['cloud_ids'] = cloud_ids                           # Form results
eb168fd93939a23416da2fc113c4ff6a2b11f5f5
<mask token>

<mask token>
if __name__ == '__main__':
    cloud_extension = IN_PARAMS['cloud_extension']
    cloud_ids = []
    for path in glob(join(cwd(), '*.' + cloud_extension)):
        name = split(splitext(path)[0])[-1]
        cloud_id = execute('import_cloud', path, name)
        cloud_ids.append(cloud_id)
    OUT_PARAMS['cloud_ids'] = cloud_ids

<mask token>
MANIFEST = {'doc': 'Loads all clouds of given format from the CWD.',
    'author': 'John Doe', 'version': '0.6', 'multithreaded': False}
DEF_IN_PARAMS['cloud_extension'] = 'copsxml'
if __name__ == '__main__':
    cloud_extension = IN_PARAMS['cloud_extension']
    cloud_ids = []
    for path in glob(join(cwd(), '*.' + cloud_extension)):
        name = split(splitext(path)[0])[-1]
        cloud_id = execute('import_cloud', path, name)
        cloud_ids.append(cloud_id)
    OUT_PARAMS['cloud_ids'] = cloud_ids

from glob import glob
from os import cwd
from os.path import join, split, splitext
from frames import execute
MANIFEST = {'doc': 'Loads all clouds of given format from the CWD.',
    'author': 'John Doe', 'version': '0.6', 'multithreaded': False}
DEF_IN_PARAMS['cloud_extension'] = 'copsxml'
if __name__ == '__main__':
    cloud_extension = IN_PARAMS['cloud_extension']
    cloud_ids = []
    for path in glob(join(cwd(), '*.' + cloud_extension)):
        name = split(splitext(path)[0])[-1]
        cloud_id = execute('import_cloud', path, name)
        cloud_ids.append(cloud_id)
    OUT_PARAMS['cloud_ids'] = cloud_ids

from glob import glob
from os import cwd
from os.path import join, split, splitext
from frames import execute

MANIFEST = {                                                     # Declare the algorithm info.
  'doc': 'Loads all clouds of given format from the CWD.',
  'author': 'John Doe', 
  'version': '0.6',
  'multithreaded': False
}
DEF_IN_PARAMS['cloud_extension'] = 'copsxml'                     # Declare default input params.

if __name__ == '__main__':                                       # Run the script if it's not imported but executed.
  cloud_extension = IN_PARAMS['cloud_extension']                 # Fetch input params.
  cloud_ids = []
  
  for path in glob(join(cwd(), '*.'+cloud_extension)):
    name = split(splitext(path)[0])[-1]
    cloud_id = execute('import_cloud', path, name)
    cloud_ids.append(cloud_id)
  
  OUT_PARAMS['cloud_ids'] = cloud_ids                           # Form results