예제 #1
0
def main():
    print '# --------------------'
    img_url, save_name = extract()
    print '#', get_unix_date()
    print '#', img_url
    saved = download(img_url, save_name)
    print '# saved to', saved
    gnome.set_wallpaper(saved)
예제 #2
0
파일: bing.py 프로젝트: the7day/jabbapylib
def main():
    print '# --------------------'
    img_url, save_name = extract()
    print '#', get_unix_date()
    print '#', img_url
    saved = download(img_url, save_name)
    print '# saved to', saved
    gnome.set_wallpaper(saved)
예제 #3
0
def main():
    print "# --------------------"
    img_url, save_name = extract()
    print "#", get_unix_date()
    print "#", img_url
    saved = download(img_url, save_name)
    print "# saved to", saved
    gnome.set_wallpaper(saved)
예제 #4
0
 def test_get_unix_date(self):
     # Unix command 'date'
     date = process.get_simple_cmd_output('date').replace('\n', '')
     # pure Python 'date'
     python = dat.get_unix_date()
     assert date == python
예제 #5
0
 def test_get_unix_date(self):
     # Unix command 'date'
     date = process.get_simple_cmd_output('date').replace('\n', '')
     # pure Python 'date'
     python = dat.get_unix_date()
     assert date == python