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 0EA58138247 for ; Thu, 21 Nov 2013 09:06:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC0D6E0A01; Thu, 21 Nov 2013 09:06: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 E372AE0A03 for ; Thu, 21 Nov 2013 09:06:36 +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 E31AC33F2DD for ; Thu, 21 Nov 2013 09:06:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 665CEE54D7 for ; Thu, 21 Nov 2013 09:06:33 +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: <1385024411.0b344d4add947ac213852359e097bd82644c0c74.dol-sen@gentoo> Subject: [gentoo-commits] proj/catalyst:3.0 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: 0b344d4add947ac213852359e097bd82644c0c74 X-VCS-Branch: 3.0 Date: Thu, 21 Nov 2013 09:06:33 +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: 8c938432-2d0e-4d9b-88d9-f0359ba9d75b X-Archives-Hash: 5e487e3e3a2be18b40c5df2628f44f39 commit: 0b344d4add947ac213852359e097bd82644c0c74 Author: Brian Dolbec gentoo org> AuthorDate: Wed Jun 5 17:39:48 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Thu Nov 21 09:00:11 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=0b344d4a 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}"