Skip to content

Commit

Permalink
fixed bug with only being able to run in main directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jim xu committed Mar 8, 2019
1 parent 6cf3072 commit d3ef105
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/env_detect.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import yaml

AWSInstance = "aws" in list(
yaml.load(
open(
"./test_config.yaml",
"r"))["cloud"].keys())
GCPInstance = "gcloud" in list(
yaml.load(
open(
"./test_config.yaml",
"r"))["cloud"].keys())


def on_gcp():
return GCPInstance


def on_aws():
return AWSInstance

0 comments on commit d3ef105

Please sign in to comment.