ucloud-vm/setup.py

15 lines
439 B
Python
Executable File

import argparse
import os
argparser = argparse.ArgumentParser()
argparser.add_argument("--production", action="store_true")
argparser.add_argument("--development", action="store_true")
args = argparser.parse_args()
if args.development:
if not os.path.exists("etcd3_wrapper"):
os.symlink("../etcd3_wrapper", "etcd3_wrapper")
if not os.path.exists("ucloud_common"):
os.symlink("../ucloud_common", "ucloud_common")