aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generator/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/generator/cpp')
-rwxr-xr-xscripts/generator/cpp/gmock_class_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generator/cpp/gmock_class_test.py b/scripts/generator/cpp/gmock_class_test.py
index 0132eef4..ae00800f 100755
--- a/scripts/generator/cpp/gmock_class_test.py
+++ b/scripts/generator/cpp/gmock_class_test.py
@@ -25,7 +25,7 @@ import sys
import unittest
# Allow the cpp imports below to work when run as a standalone script.
-sys.path.append(os.path.dirname(os.path.dirname(__file__)))
+sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from cpp import ast
from cpp import gmock_class