mirror of
https://github.com/dart-lang/sdk
synced 2024-09-21 04:41:27 +00:00
fdc00d2cc9
BUG= R=ricow@google.com Review URL: https://codereview.chromium.org//292743008 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36414 260f80e4-7a28-3924-810f-c04153c831b5
24 lines
784 B
Python
Executable file
24 lines
784 B
Python
Executable file
#!/usr/bin/python
|
|
|
|
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
"""Utility functions specific to dartium buildbot checkouts
|
|
"""
|
|
import os
|
|
|
|
def srcPath():
|
|
"""Return the path [dartium_checkout]/src
|
|
|
|
Only valid if this file is in a dartium checkout.
|
|
"""
|
|
# This file is in [dartium checkout]/src/dart/tools/dartium/,
|
|
# if we are in a dartium checkout that checks out dart into src.
|
|
# This function cannot be in utils.py because __file__ is wrong
|
|
# when other modules with the name 'utils' are imported indirectly.
|
|
return os.path.dirname(
|
|
os.path.dirname(
|
|
os.path.dirname(
|
|
os.path.dirname(os.path.abspath(__file__)))))
|