From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6B321138247 for ; Fri, 22 Nov 2013 07:13:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FD56E0AD7; Fri, 22 Nov 2013 07:13:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0096EE0AD9 for ; Fri, 22 Nov 2013 07:13:31 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EDFFC33F335 for ; Fri, 22 Nov 2013 07:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 8B3E4D0112 for ; Fri, 22 Nov 2013 07:13:27 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1385100154.477cff3cb0fc6fb11f889b63c2dd7eb45c7b5e07.dol-sen@gentoo> Subject: [gentoo-commits] proj/catalyst:rewrite-on-master commit in: /, doc/ X-VCS-Repository: proj/catalyst X-VCS-Files: doc/HOWTO.txt testpath X-VCS-Directories: / doc/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 477cff3cb0fc6fb11f889b63c2dd7eb45c7b5e07 X-VCS-Branch: rewrite-on-master Date: Fri, 22 Nov 2013 07:13:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4ae66670-e78b-45bb-a020-f00cb44d3645 X-Archives-Hash: 1d7e0ad2070e794ed7355abae671193e commit: 477cff3cb0fc6fb11f889b63c2dd7eb45c7b5e07 Author: Brian Dolbec gentoo org> AuthorDate: Wed Jun 5 17:39:48 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri Nov 22 06:02:34 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=477cff3c Make testpath automagic via dwfeed's tweak Update HOWTO to include the testpath use. --- doc/HOWTO.txt | 10 ++++++++-- testpath | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/HOWTO.txt b/doc/HOWTO.txt index 5717f80..178f7fc 100644 --- a/doc/HOWTO.txt +++ b/doc/HOWTO.txt @@ -208,9 +208,15 @@ Running catalyst from a Git checkout If you're developing catalyst, you'll want to test your altered version. An easy way to run it without reinstalling is to setup a -local configuration file and run: +local configuration file. The checkout also includes a testpath file +which when sourced adds it's bin/ to PATH and it's checkout dir to +PYTHONPATH. That terminal will then use the checkout bin/catalyst and +the checkout's python modules. - # ./catalyst -c catalyst.conf -f path/to/your.spec +cd into the checkout directory and run: + + # source ./testpath + # catalyst -c catalyst.conf -f path/to/your.spec The local configuration file can use all the defaults except for `sharedir`, which you should change to point to your development diff --git a/testpath b/testpath index 9fd7e45..0eed300 100644 --- a/testpath +++ b/testpath @@ -13,6 +13,6 @@ # # catalyst -c ./test.conf -p -f stage1.spec -export PATH="/home/brian/Dev/git/catalyst/bin:${PATH}" +export PATH="$(dirname $BASH_SOURCE[0])/bin:${PATH}" -export PYTHONPATH="/home/brian/Dev/git/catalyst/:${PYTHONPATH}" +export PYTHONPATH="$(dirname $BASH_SOURCE[0]):${PYTHONPATH}"