コード例 #1
0
ファイル: commands.py プロジェクト: jbruwer/pygrow
 def Run(self, argv):
     if len(argv) != 2:
         # Default to using the current directory as the root for the pod.
         root = os.path.abspath(os.getcwd())
     else:
         root = os.path.abspath(os.path.join(os.getcwd(), argv[-1]))
     if not FLAGS.skip_sdk_update_check:
         sdk_utils.check_version(auto_update_prompt=True)
     pod = pods.Pod(root, storage=storage.FileStorage)
     manager.start(pod, host=FLAGS.host, port=FLAGS.port, open_browser=FLAGS.open)