~toolpart/+junk/pythoncard

« back to all changes in this revision

Viewing changes to install-pythoncard.py

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2006-11-12 17:52:13 UTC
  • mfrom: (2.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061112175213-tv8bnl6rtpa2qw1o
Tags: 0.8.1-8.1
* Non-maintainer upload.
* Fix path to findfiles, codeEditor and resourceEditor:
   + patch from Ernest ter Kuile <ernestjw@xs4all.nl>. (Closes: #397018)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
"""
3
 
__version__ = "$Revision: 1.4 $"
4
 
__date__ = "$Date: 2003/01/10 08:02:16 $"
 
3
__version__ = "$Revision: 1.6 $"
 
4
__date__ = "$Date: 2004/04/08 21:07:35 $"
5
5
"""
6
6
 
7
7
# THIS FILE IS ONLY FOR USE WITH MS WINDOWS
55
55
        # get_special_folder_location(csidl_string)
56
56
 
57
57
        target = os.path.join(lib_dir,
58
 
                              "PythonCardPrototype\\samples\\samples.py")
 
58
                              "PythonCard\\samples\\samples.py")
59
59
        path = os.path.join(dest_dir, "Sample Launcher.lnk")
60
60
 
61
61
        create_shortcut(target, "Sample Launcher", path)
64
64
 
65
65
        path = os.path.join(dest_dir, "Resource Editor.lnk")
66
66
        arguments = os.path.join(lib_dir,
67
 
             "PythonCardPrototype\\tools\\resourceEditor\\resourceEditor.py")
 
67
             "PythonCard\\tools\\resourceEditor\\resourceEditor.py")
68
68
        create_shortcut(pythonw, "Resource Editor", path, arguments)
69
69
        file_created(path)
70
70
 
71
71
 
72
72
        path = os.path.join(dest_dir, "Code Editor.lnk")
73
73
        arguments = os.path.join(lib_dir,
74
 
             "PythonCardPrototype\\tools\\codeEditor\\codeEditor.py")
 
74
             "PythonCard\\tools\\codeEditor\\codeEditor.py")
75
75
 
76
76
        create_shortcut(pythonw, "Code Editor", path, arguments)
77
77
        file_created(path)
79
79
 
80
80
        path = os.path.join(dest_dir, "Find Files.lnk")
81
81
        arguments = os.path.join(lib_dir,
82
 
             "PythonCardPrototype\\tools\\findfiles\\findfiles.py")
 
82
             "PythonCard\\tools\\findfiles\\findfiles.py")
83
83
 
84
84
        create_shortcut(pythonw, "Find Files", path, arguments)
85
85
        file_created(path)
86
86
 
87
87
 
88
88
        target = os.path.join(lib_dir,
89
 
                              "PythonCardPrototype\\docs\\html\\index.html")
 
89
                              "PythonCard\\docs\\html\\index.html")
90
90
        path = os.path.join(dest_dir, "Documentation.lnk")
91
91
 
92
92
        create_shortcut(target, "Documentation", path)
93
93
        file_created(path)
94
94
 
95
95
 
96
 
        target = os.path.join(sys.prefix, "RemovePythonCardPrototype.exe")
97
 
        path = os.path.join(dest_dir, "Uninstall PythonCardPrototype.lnk")
 
96
        target = os.path.join(sys.prefix, "RemovePythonCard.exe")
 
97
        path = os.path.join(dest_dir, "Uninstall PythonCard.lnk")
98
98
        arguments = "-u " + os.path.join(sys.prefix,
99
 
                                         "PythonCardPrototype-wininst.log")
 
99
                                         "PythonCard-wininst.log")
100
100
 
101
 
        create_shortcut(target, "Uninstall PythonCardPrototype",
 
101
        create_shortcut(target, "Uninstall PythonCard",
102
102
                        path, arguments)
103
103
        file_created(path)
104
104