コード例 #1
0
ファイル: bing.py プロジェクト: ayoub-benali/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)
コード例 #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
ファイル: bing.py プロジェクト: jeffreywinn/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)
コード例 #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