Merge lp:~dobey/tarmac/run-direct into lp:tarmac

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 433
Merged at revision: 431
Proposed branch: lp:~dobey/tarmac/run-direct
Merge into: lp:tarmac
Diff against target: 33 lines (+23/-1)
1 file modified
bin/tarmac (+23/-1)
To merge this branch: bzr merge lp:~dobey/tarmac/run-direct
Reviewer Review Type Date Requested Status
Mike McCracken Approve
Review via email: mp+209778@code.launchpad.net

Commit message

Update sys.path in bin/tarmac to run in-tree.
Update the copyright header.

To post a comment you must log in.
lp:~dobey/tarmac/run-direct updated
432. By dobey

Use the __file__ method instead.

Revision history for this message
Mike McCracken (mikemc) wrote :

looks good, tests pass. hooray!

review: Approve
lp:~dobey/tarmac/run-direct updated
433. By dobey

Check if the tarmac module tree exists first.

Revision history for this message
Mike McCracken (mikemc) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/tarmac'
--- bin/tarmac 2010-06-17 17:23:37 +0000
+++ bin/tarmac 2014-03-07 22:19:26 +0000
@@ -1,6 +1,28 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# vim:filetype=python2# vim:filetype=python
3'''Main tarmac script.'''3# Copyright 2009 Paul Hummer
4# Copyright 2014 Canonical Ltd.
5#
6# Tarmac is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License version 3 as
8# published by
9# the Free Software Foundation.
10#
11# Tarmac is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with Tarmac. If not, see <http://www.gnu.org/licenses/>.
18"""Main tarmac script."""
19
20import os
21import sys
22
23pardir = os.path.join(os.path.dirname(__file__), os.pardir)
24if os.path.exists(os.path.join(pardir, 'tarmac', '__init__.py')):
25 sys.path.append(pardir)
426
5from tarmac.bin import main27from tarmac.bin import main
6main()28main()

Subscribers

People subscribed via source and target branches