Re: [LORAX 1/2] better debug, handle relative output paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ack to both

----- Original Message -----
> From: root <root@xxxxxxxxxxxxxxxxxxxx>
> 
> ---
>  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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> 

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux