~botevmg/unity-mail/gmailThread

« back to all changes in this revision

Viewing changes to um-url

  • Committer: Dmitry Shachnev
  • Date: 2014-04-10 17:41:47 UTC
  • Revision ID: mitya57@ubuntu.com-20140410174147-1z4nj6lpin3kk4hy
Get rid of star import in um-url

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Author: Dmitry Shachnev <mitya57@gmail.com>
4
4
# License: GNU GPL 3 or higher; http://www.gnu.org/licenses/gpl.html
5
5
 
6
 
import os.path
7
6
import sys
8
 
 
9
 
from UnityMail.config import *
10
 
 
11
 
if (os.path.exists('/usr/share/unity-mail/unity-mail-autostart.desktop') and
12
 
not os.path.exists(config_dir+'/autostart/unity-mail-autostart.desktop')):
 
7
import subprocess
 
8
 
 
9
from os.path import exists
 
10
from UnityMail.config import config_dir, open_url_or_command, print_names
 
11
 
 
12
if (exists('/usr/share/unity-mail/unity-mail-autostart.desktop') and
 
13
not exists(config_dir+'/autostart/unity-mail-autostart.desktop')):
13
14
        # First run of Unity Mail, open um-config
14
15
        subprocess.call('um-config')
15
16
elif len(sys.argv) > 1: