.ycm_extra_conf.py
author Philip Chee <philip.chee@gmail.com>
Sat, 30 Apr 2016 23:34:33 +0800
changeset 22008 89f9c42ded4b203968195b43f3059757a7e6b6d9
parent 20526 4a3dca917204472c1d1bd029a085fe8c745887da
permissions -rw-r--r--
Bug 1268975 - Port Bug 1255570 to SeaMonkey r=IanN a=IanN comm-aurora CLOSED TREE

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import imp, os, sys

old_bytecode = sys.dont_write_bytecode
sys.dont_write_bytecode = True

ycm_module = imp.load_source("_ycm_extra_conf", os.path.join("mozilla", ".ycm_extra_conf.py"))

sys.dont_write_bytecode = old_bytecode

# Expose the FlagsForFile function from mozilla/.ycm_extra_conf.py
FlagsForFile = ycm_module.FlagsForFile