Merge lp://qastaging/~thekorn/acire/506327.SNIPPETS_DIR_environ into lp://qastaging/acire

Proposed by Markus Korn
Status: Merged
Merged at revision: not available
Proposed branch: lp://qastaging/~thekorn/acire/506327.SNIPPETS_DIR_environ
Merge into: lp://qastaging/acire
Diff against target: 26 lines (+3/-1)
2 files modified
AUTHORS (+1/-0)
bin/acire (+2/-1)
To merge this branch: bzr merge lp://qastaging/~thekorn/acire/506327.SNIPPETS_DIR_environ
Reviewer Review Type Date Requested Status
Jono Bacon Pending
Review via email: mp+17211@code.qastaging.launchpad.net
To post a comment you must log in.
Revision history for this message
Markus Korn (thekorn) wrote :

Made the location of python-snippets configurable via SNIPPETS_DIR environment variable, so you can run acire like:
  SNIPPETS_DIR=~/devel/python-snippets/trunk quickly run

17. By Markus Korn

added myself to AUTHORS and copyright holders of bin/acire

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'AUTHORS'
2--- AUTHORS 2010-01-08 21:07:00 +0000
3+++ AUTHORS 2010-01-12 10:08:16 +0000
4@@ -1,1 +1,2 @@
5 # Copyright (C) 2009 Jono Bacon <jono@ubuntu.com>
6+# Copyright (C) 2010 Markus Korn <thekorn@gmx.de>
7
8=== modified file 'bin/acire'
9--- bin/acire 2010-01-11 02:48:02 +0000
10+++ bin/acire 2010-01-12 10:08:16 +0000
11@@ -2,6 +2,7 @@
12 # -*- coding: utf-8 -*-
13 ### BEGIN LICENSE
14 # Copyright (C) 2009 Jono Bacon <jono@ubuntu.com>
15+# Copyright (C) 2010 Markus Korn <thekorn@gmx.de>
16 #This program is free software: you can redistribute it and/or modify it
17 #under the terms of the GNU General Public License version 3, as published
18 #by the Free Software Foundation.
19@@ -102,7 +103,7 @@
20 #self.terminal.fork_command()
21 self.terminal.show()
22
23- self.snippetsdir = "/usr/share/python-snippets"
24+ self.snippetsdir = os.environ.get("SNIPPETS_DIR", "/usr/share/python-snippets")
25 self.snippetsfiles = []
26 self.snippetsdata = []
27

Subscribers

People subscribed via source and target branches