FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 01-04-2012, 12:26 AM
"Brian C. Lane"
 
Default better debug, handle relative output paths

From: root <root@lister.brianlane.com>

---
src/pylorax/__init__.py | 1 +
src/sbin/lorax | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index 5160e6c..9d2d229 100644
--- a/src/pylorax/__init__.py
+++ b/src/pylorax/__init__.py
@@ -23,6 +23,7 @@
# set up logging
import logging
logger = logging.getLogger("pylorax")
+logger.setLevel(logging.DEBUG)

sh = logging.StreamHandler()
sh.setLevel(logging.INFO)
diff --git a/src/sbin/lorax b/src/sbin/lorax
index 8d73ac6..328827e 100755
--- a/src/sbin/lorax
+++ b/src/sbin/lorax
@@ -80,7 +80,7 @@ def main(args):
opts, args = parser.parse_args()

try:
- outputdir = args[0]
+ outputdir = os.path.abspath(args[0])
except IndexError:
parser.error("missing one or more required arguments")

--
1.7.6.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-04-2012, 06:55 AM
Martin Gracik
 
Default better debug, handle relative output paths

ack to both

----- Original Message -----
> From: root <root@lister.brianlane.com>
>
> ---
> src/pylorax/__init__.py | 1 +
> src/sbin/lorax | 2 +-
> 2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
> index 5160e6c..9d2d229 100644
> --- a/src/pylorax/__init__.py
> +++ b/src/pylorax/__init__.py
> @@ -23,6 +23,7 @@
> # set up logging
> import logging
> logger = logging.getLogger("pylorax")
> +logger.setLevel(logging.DEBUG)
>
> sh = logging.StreamHandler()
> sh.setLevel(logging.INFO)
> diff --git a/src/sbin/lorax b/src/sbin/lorax
> index 8d73ac6..328827e 100755
> --- a/src/sbin/lorax
> +++ b/src/sbin/lorax
> @@ -80,7 +80,7 @@ def main(args):
> opts, args = parser.parse_args()
>
> try:
> - outputdir = args[0]
> + outputdir = os.path.abspath(args[0])
> except IndexError:
> parser.error("missing one or more required arguments")
>
> --
> 1.7.6.4
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 03:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org