SCRIPTS EXECUTABLE ex_localhostΒΆ

# -*-Python-*-
# Created by bgrierson at 23 Feb 2018  11:00

"""
This script runs a simple code on the localhost

"""

executable = '''
pwd > pwd.txt'''

# Set up to only run this code on the localhost (i.e. your workstation or laptop)
serverPicker = 'localhost'
serverOptions = SERVER[serverPicker]
server = serverOptions['server']
tunnel = serverOptions['tunnel']
remotedir = str(OMFITworkDir(root, serverPicker))
workdir = str(root['SETTINGS']['SETUP']['workDir'])

# Run the executable
OMFITx.executable(
    root, inputs=[], outputs=['pwd.txt'], executable=executable, tunnel=None, server='localhost', workdir=workdir, remotedir=remotedir
)


root['OUTPUTS'].setdefault('EXECUTABLE', OMFITtree())
root['OUTPUTS']['EXECUTABLE']['ex_localhost'] = OMFITascii('./pwd.txt')