~justinmcp/unity-webapps-yandexnews/fix-module-imports

« back to all changes in this revision

Viewing changes to scripts/update-desktop-file-unity-webapps-yandexnews.py

  • Committer: Justin McPherson
  • Date: 2015-04-13 07:14:23 UTC
  • Revision ID: justin@phablet-dev-20150413071423-kv1cug4i29hwyvl1
Fix module imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
 
from gi.repository import Gio
 
2
from gi.repository import GLib
3
3
import os
4
 
import glib
5
4
import glob
6
 
import re
7
 
 
8
5
APP_ID = 'YandexNewsnewsyandexru'
9
6
 
10
7
def get_local_applications_path():
11
 
    return os.path.join(glib.get_user_data_dir(), 'applications')
 
8
    return os.path.join(GLib.get_user_data_dir(), 'applications')
12
9
 
13
10
def update_desktop_file_startupwmclass():
14
11
    local_applications_path = get_local_applications_path()
31
28
 
32
29
if __name__ == "__main__":
33
30
    update_desktop_file_startupwmclass()
34
 
    
 
 
b'\\ No newline at end of file'
 
31