Skip to content

Commit e5695e1

Browse files
committed
2 parents 00433f0 + 5702c64 commit e5695e1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

hooks/SessionStart/custom_config_python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def configure():
1010
script_dir = os.path.dirname(os.path.abspath(__file__))
1111
# hooks/SessionStart -> root is 2 levels up
1212
root_dir = os.path.abspath(os.path.join(script_dir, "../.."))
13-
source_yaml = os.path.join(root_dir, "google-ads.yaml")
13+
source_yaml = os.path.join(os.path.expanduser("~"), "google-ads.yaml")
1414
config_dir = os.path.join(root_dir, "config")
1515
target_yaml = os.path.join(config_dir, "google-ads.yaml")
1616
ext_version_script = os.path.join(root_dir, "skills/ext_version/scripts/get_extension_version.py")
@@ -56,7 +56,7 @@ def configure():
5656
sys.exit(1)
5757

5858
# Output env var command
59-
print(f"export GOOGLE_ADS_CONFIGURATION_FILE_PATH=\"{target_yaml}\"")
59+
print(f"export GOOGLE_ADS_CONFIGURATION_FILE_PATH=\"{target_yaml}\"", file=sys.stdout)
6060

6161
if __name__ == "__main__":
6262
timestamp = datetime.datetime.now()

hooks/hooks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "custom-config-python",
66
"type": "command",
7-
"ecommand": "python3 ${extensionPath}/hooks/SessionStart/custom_config_python.py",
7+
"command": "python3 ${extensionPath}/hooks/SessionStart/custom_config_python.py",
88
"description": "Configures Google Ads environment at session start.",
99
"timeout": 30000
1010
}

0 commit comments

Comments
 (0)