X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=print-filename.py;h=d5413976761bfc625c54d780de2e8654b6d2c8b6;hb=577e6f1ca8e079172fcd42f373f5948e84d3d0b6;hp=518ab21af9c86460ce0ab9eca73e2c19a8e28777;hpb=e419658ab913dcc21e93573fd8a277c1f0618eab;p=xsetbg.git diff --git a/print-filename.py b/print-filename.py index 518ab21..d541397 100755 --- a/print-filename.py +++ b/print-filename.py @@ -1,17 +1,12 @@ -#! /usr/bin/env python -"""Print background filename +#! /usr/bin/env python3 +"""print(background filename) -Print the filename of the current or previous background image. +print(the filename of the current or previous background image.) This file is a part of XSetBg. """ -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2004-2015 PhiloSoft Design" -__license__ = "GNU GPL" - - import sys from xsetbg_db import xsetbg_db @@ -58,9 +53,9 @@ def get_args(): output_encoding = default_encoding return index, output_encoding -index, output_encoding = get_args() +index, output_encoding = get_args() filename = xsetbg_db.select('last_shown IS NOT NULL', orderBy='-last_shown')[index].full_name -print filename.encode(output_encoding) +print(filename.encode(output_encoding))