def _cgcloud( cls, *args ): log.info( 'Running %r', args ) if os.environ.get( 'CGCLOUD_TEST_EXEC', "" ): check_call( concat( 'cgcloud', args ) ) else: main( args )
#!/usr/bin/env python2.7 import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "src")) from cgcloud.core.cli import main if __name__ == "__main__": main()
def _cgcloud(cls, *args): log.info('Running %r', args) if os.environ.get('CGCLOUD_TEST_EXEC', ""): subprocess32.check_call(concat('cgcloud', args)) else: main(args)