mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
0e93305a10
commit
007e06dfa5
@ -41,6 +41,7 @@ entry_points = {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Uninstall script {{{
|
||||||
UNINSTALL = '''\
|
UNINSTALL = '''\
|
||||||
#!{python}
|
#!{python}
|
||||||
euid = {euid}
|
euid = {euid}
|
||||||
@ -81,6 +82,8 @@ for f in mr:
|
|||||||
os.remove(os.path.abspath(__file__))
|
os.remove(os.path.abspath(__file__))
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
class PostInstall:
|
class PostInstall:
|
||||||
|
|
||||||
def task_failed(self, msg):
|
def task_failed(self, msg):
|
||||||
@ -323,7 +326,7 @@ class PostInstall:
|
|||||||
self.task_failed('Installing MAN pages failed')
|
self.task_failed('Installing MAN pages failed')
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
def setup_desktop_integration(self):
|
def setup_desktop_integration(self): # {{{
|
||||||
try:
|
try:
|
||||||
|
|
||||||
self.info('Setting up desktop integration...')
|
self.info('Setting up desktop integration...')
|
||||||
@ -382,6 +385,8 @@ class PostInstall:
|
|||||||
raise
|
raise
|
||||||
self.task_failed('Setting up desktop integration failed')
|
self.task_failed('Setting up desktop integration failed')
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
def option_parser():
|
def option_parser():
|
||||||
from calibre.utils.config import OptionParser
|
from calibre.utils.config import OptionParser
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user