forked from nipy/pbrain
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpostinstall.py
More file actions
35 lines (22 loc) · 874 Bytes
/
postinstall.py
File metadata and controls
35 lines (22 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""
See for example
http://www.geocrawler.com/archives/3/14884/2002/10/0/9979630/
"""
import sys, os
import distutils.sysconfig
if sys.platform[:3] != 'win':
sys.exit()
startMenuDir = get_special_folder_path('CSIDL_STARTMENU')
desktopDir = get_special_folder_path('CSIDL_COMMON_DESKTOPDIRECTORY')
target = os.path.join(
distutils.sysconfig.PREFIX,
'lib', 'site-packages', 'eegview', 'eegview.py')
filename = os.path.join(desktopDir, 'eegview.py.lnk')
create_shortcut(target, 'Shortcut to eegview', filename)
print 'Created shortcut from %s to %s' % (filename, target)
target = os.path.join(
distutils.sysconfig.PREFIX,
'lib', 'site-packages', 'loc3djr', 'loc3djr.py')
filename = os.path.join(desktopDir, 'loc3djr.py.lnk')
create_shortcut(target, 'Shortcut to eegview', filename)
print 'Created shortcut from %s to %s' % (filename, target)