scripts/install.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9485
0f3620304d7a
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
11 11
12 import compileall 12 import compileall
13 import contextlib 13 import contextlib
14 import datetime 14 import datetime
15 import fnmatch 15 import fnmatch
16 import getopt
16 import getpass 17 import getpass
17 import glob 18 import glob
18 import io 19 import io
19 import json 20 import json
20 import os 21 import os
1963 @type str 1964 @type str
1964 @return value of requested registry variable 1965 @return value of requested registry variable
1965 @rtype any 1966 @rtype any
1966 """ 1967 """
1967 try: 1968 try:
1968 import winreg 1969 import winreg # __IGNORE_WARNING_I103__
1969 except ImportError: 1970 except ImportError:
1970 return None 1971 return None
1971 1972
1972 try: 1973 try:
1973 registryKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0, winreg.KEY_READ) 1974 registryKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0, winreg.KEY_READ)
2072 The main function of the script. 2073 The main function of the script.
2073 2074
2074 @param argv list of command line arguments 2075 @param argv list of command line arguments
2075 @type list of str 2076 @type list of str
2076 """ 2077 """
2077 import getopt
2078
2079 # Parse the command line. 2078 # Parse the command line.
2080 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir 2079 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir
2081 global sourceDir, eric7SourceDir, configName 2080 global sourceDir, eric7SourceDir, configName
2082 global macAppBundlePath, macAppBundleName, macPythonExe 2081 global macAppBundlePath, macAppBundleName, macPythonExe
2083 global installApis, doCleanDesktopLinks, yes2All 2082 global installApis, doCleanDesktopLinks, yes2All
2315 """ eric-bugs@eric-ide.python-projects.org.\n""" 2314 """ eric-bugs@eric-ide.python-projects.org.\n"""
2316 ) 2315 )
2317 raise 2316 raise
2318 2317
2319 # 2318 #
2320 # eflag: noqa = M801 2319 # eflag: noqa = M801, I101, I102

eric ide

mercurial