Module ClassDef bases NameLoad body Pass decorator_list Import alias FunctionDef arguments args NameParam defaults body Expr Str Import alias TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Return Num handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias If CompareIs NameLoad NameLoad body Assign NameStore Str Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Import alias For NameStore Call AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad NameLoad body Return TupleLoad NameLoad NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return TupleLoad NameLoad NameLoad Raise NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Import alias alias alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr TryFinally body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Num If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass finalbody Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass For NameStore NameLoad body If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Str Index Num If BoolOpAnd NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return NameLoad For NameStore NameLoad body If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias alias alias alias alias If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore CompareEq NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias alias TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Str Return BinOpMod Str NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Import alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str For NameStore NameLoad body For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Break handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body Break orelse Assign NameStore SubscriptLoad NameLoad Index Num TryExcept body Import alias alias handlers ExceptHandler type NameLoad body Raise NameLoad BinOpMod Str NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad If CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Import alias Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str orelse Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore NameLoad Break If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Raise NameLoad Str Assign NameStore NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad body Assign NameStore NameLoad Break If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad BinOpMod Str NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Return TupleLoad NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Import alias alias If UnaryOpNot NameLoad body Raise NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore BoolOpOr NameLoad NameLoad TryExcept body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str TupleLoad NameLoad NameLoad Print Str Print Str Print Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Import alias alias If CompareEq Call NameLoad NameLoad Call NameLoad Str body Assign NameStore ListLoad NameLoad Assign NameStore ListLoad TryExcept body For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Print Str NameLoad Return Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Import alias alias Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Import alias TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print Str NameLoad Return Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Import alias alias Import alias alias alias Assign TupleStore NameStore NameStore Call NameLoad NameLoad Print NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias alias Assign NameStore Call NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpAdd Call NameLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad Str Expr Call NameLoad Str NameLoad Str decorator_list Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Str If CompareEq NameLoad Str body If BoolOpAnd CompareGt Call NameLoad AttributeLoad NameLoad attr Num CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Str Str Str Str body Print NameLoad orelse If BoolOpOr CompareEq Call NameLoad AttributeLoad NameLoad attr Num UnaryOpNot CompareIn SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num ListLoad Str Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice For NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Print Str Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad Str NameLoad Str Print Str Import alias Expr Call AttributeLoad NameLoad attr orelse Assign NameStore ListLoad Import alias alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Str ListLoad Str Str Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Print NameLoad If CompareEq NameLoad Str body Print NameLoad If CompareEq NameLoad Str body Print Str Expr Call NameLoad NameLoad If CompareEq NameLoad Str body Print Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad If CompareIn NameLoad ListLoad Str Str body Import alias Print Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Print Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq NameLoad Str body If UnaryOpNot Call NameLoad NameLoad body Raise NameLoad Str Import alias alias Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad NameLoad body Print BinOpMod Str BinOpSub Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Str orelse Print Str
N/A error N/A Exception N/A N/A N/A N/A sys FileExists N/A N/A fname N/A N/A N/A Check if a file exists.  Returns true or false.
     N/A os N/A N/A N/A N/A N/A os stat fname N/A 1 N/A N/A N/A N/A os error N/A details N/A N/A 0 N/A IsPackageDir N/A N/A path packageName knownFileName N/A N/A N/A Given a path, a ni package name, and possibly a known file name in
       the root of the package, see if this path is good.
     N/A os N/A N/A knownFileName None N/A N/A knownFileName . N/A N/A FileExists N/A N/A N/A os path join N/A N/A N/A os path join path packageName knownFileName N/A IsDebug N/A N/A N/A N/A N/A Return "_d" if we're running a debug version.

    This is to be used within DLL names when locating them.
     N/A imp N/A suffix_item N/A N/A imp get_suffixes N/A N/A N/A N/A suffix_item N/A 0 _d.pyd N/A N/A _d N/A N/A FindPackagePath N/A N/A packageName knownFileName searchPaths N/A N/A N/A Find a package.

       Given a ni style package name, check the package is registered.

       First place looked is the registry for an existing entry.  Then
       the searchPaths are searched.
     N/A regutil os N/A pathLook N/A N/A regutil GetRegisteredNamedPath packageName N/A N/A pathLook N/A IsPackageDir pathLook packageName knownFileName N/A N/A N/A pathLook None N/A pathLook searchPaths N/A N/A N/A IsPackageDir pathLook packageName knownFileName N/A N/A ret N/A N/A N/A os path abspath pathLook N/A N/A ret ret N/A error N/A The package %s can not be located packageName N/A FindHelpPath N/A N/A helpFile helpDesc searchPaths N/A N/A N/A os win32api win32con N/A N/A N/A key N/A N/A win32api RegOpenKey N/A win32con HKEY_LOCAL_MACHINE Software\Microsoft\Windows\Help 0 N/A win32con KEY_ALL_ACCESS N/A N/A N/A N/A N/A path N/A N/A N/A win32api RegQueryValueEx key helpDesc N/A 0 N/A N/A FileExists N/A N/A N/A os path join path helpFile N/A N/A N/A N/A N/A os path abspath path N/A N/A N/A N/A win32api error N/A N/A N/A N/A N/A N/A key Close N/A N/A N/A N/A win32api error N/A N/A N/A pathLook searchPaths N/A N/A N/A FileExists N/A N/A N/A os path join pathLook helpFile N/A N/A N/A N/A N/A os path abspath pathLook N/A pathLook N/A N/A N/A os path join pathLook Help N/A N/A FileExists N/A N/A N/A os path join pathLook helpFile N/A N/A N/A N/A N/A os path abspath pathLook N/A error N/A The help file %s can not be located helpFile N/A FindAppPath N/A N/A appName knownFileName searchPaths N/A N/A N/A Find an application.

     First place looked is the registry for an existing entry.  Then
     the searchPaths are searched.
     N/A regutil string os N/A regPath N/A N/A regutil GetRegisteredNamedPath appName N/A regPath N/A N/A pathLook N/A N/A N/A string split regPath ; N/A 0 N/A N/A regPath N/A FileExists N/A N/A N/A os path join pathLook knownFileName N/A N/A None N/A pathLook searchPaths N/A N/A N/A FileExists N/A N/A N/A os path join pathLook knownFileName N/A N/A N/A N/A N/A os path abspath pathLook N/A error N/A The file %s can not be located for application %s N/A knownFileName appName N/A FindPythonExe N/A N/A exeAlias possibleRealNames searchPaths N/A N/A N/A Find an exe.

       Returns the full path to the .exe, and a boolean indicating if the current
       registered entry is OK.  We don't trust the already registered version even
       if it exists - it may be wrong (ie, for a different Python version)
     N/A win32api regutil string os sys N/A N/A possibleRealNames None N/A N/A possibleRealNames exeAlias N/A found N/A N/A N/A os path join N/A sys prefix possibleRealNames N/A N/A N/A FileExists found N/A N/A found N/A N/A N/A os path join N/A sys prefix PCBuild possibleRealNames N/A N/A N/A FileExists found N/A N/A found N/A LocateFileName possibleRealNames searchPaths N/A registered_ok 0 N/A N/A N/A registered N/A N/A win32api RegQueryValue N/A N/A regutil GetRootKey N/A N/A N/A N/A regutil GetAppPathsKey \ exeAlias N/A registered_ok N/A found registered N/A N/A N/A N/A win32api error N/A N/A N/A N/A found registered_ok N/A QuotedFileName N/A N/A fname N/A N/A N/A Given a filename, return a quoted version if necessary
     N/A regutil string N/A N/A N/A N/A N/A string index fname N/A N/A "%s" fname N/A N/A N/A ValueError N/A N/A fname N/A LocateFileName N/A N/A fileNamesString searchPaths N/A N/A N/A Locate a file name, anywhere on the search path.

       If the file can not be located, prompt the user to find it for us
       (using a common OpenFile dialog)

       Raises KeyboardInterrupt if the user cancels.
     N/A regutil string os N/A fileNames N/A N/A string split fileNamesString ; N/A path searchPaths N/A N/A fileName fileNames N/A N/A N/A N/A retPath N/A N/A N/A os path join path fileName N/A N/A N/A os stat retPath N/A N/A N/A N/A N/A os error N/A N/A retPath None N/A retPath N/A N/A N/A N/A fileName N/A fileNames N/A 0 N/A N/A N/A win32ui win32con N/A N/A N/A ImportError N/A N/A error N/A Need to locate the file %s, but the win32ui module is not available
Please run the program again, passing as a parameter the path to this file. fileName N/A flags N/A win32con OFN_FILEMUSTEXIST N/A ext N/A N/A N/A N/A os path splitext fileName N/A 1 N/A filter N/A Files of requested type (*%s)|*%s|| N/A ext ext N/A dlg N/A N/A win32ui CreateFileDialog 1 None fileName flags filter None N/A N/A N/A dlg SetOFNTitle N/A Locate  fileName N/A N/A N/A N/A dlg DoModal N/A win32con IDOK N/A N/A KeyboardInterrupt User cancelled the process N/A retPath N/A N/A dlg GetPathName N/A N/A N/A N/A os path abspath retPath N/A LocatePath N/A N/A fileName searchPaths N/A N/A N/A Like LocateFileName, but returns a directory only.
     N/A os N/A N/A N/A N/A os path abspath N/A N/A N/A N/A os path split N/A LocateFileName fileName searchPaths N/A 0 N/A LocateOptionalPath N/A N/A fileName searchPaths N/A N/A N/A Like LocatePath, but returns None if the user cancels.
     N/A N/A N/A N/A LocatePath fileName searchPaths N/A N/A N/A KeyboardInterrupt N/A N/A None N/A LocateOptionalFileName N/A N/A fileName searchPaths N/A None N/A N/A Like LocateFileName, but returns None if the user cancels.
     N/A N/A N/A N/A LocateFileName fileName searchPaths N/A N/A N/A KeyboardInterrupt N/A N/A None N/A LocatePythonCore N/A N/A searchPaths N/A N/A N/A Locate and validate the core Python directories.  Returns a list
     of paths that should be used as the core (ie, un-named) portion of
     the Python path.
     N/A string os regutil N/A currentPath N/A N/A regutil GetRegisteredNamedPath None N/A currentPath N/A N/A presearchPaths N/A N/A string split currentPath ; N/A N/A presearchPaths N/A N/A N/A N/A os path abspath . N/A libPath None N/A path presearchPaths N/A N/A N/A FileExists N/A N/A N/A os path join path os.py N/A N/A libPath path N/A N/A N/A N/A libPath None N/A searchPaths None N/A N/A libPath N/A LocatePath os.py searchPaths N/A N/A libPath None N/A N/A error The core Python library could not be located. N/A corePath None N/A suffix N/A IsDebug N/A path presearchPaths N/A N/A N/A FileExists N/A N/A N/A os path join path N/A unicodedata%s.pyd suffix N/A N/A corePath path N/A N/A N/A N/A corePath None N/A searchPaths None N/A N/A corePath N/A LocatePath N/A unicodedata%s.pyd suffix searchPaths N/A N/A corePath None N/A N/A error The core Python path could not be located. N/A installPath N/A N/A N/A os path abspath N/A N/A N/A os path join libPath .. N/A N/A installPath N/A libPath corePath N/A FindRegisterPackage N/A N/A packageName knownFile searchPaths registryAppName N/A None N/A N/A Find and Register a package.

       Assumes the core registry setup correctly.

       In addition, if the location located by the package is already
       in the **core** path, then an entry is registered, but no path.
       (no other paths are checked, as the application whose path was used
       may later be uninstalled.  This should not happen with the core)
     N/A regutil string N/A N/A packageName N/A N/A error A package name must be supplied N/A corePaths N/A N/A string split N/A N/A regutil GetRegisteredNamedPath None ; N/A N/A searchPaths N/A N/A searchPaths corePaths N/A registryAppName N/A registryAppName packageName N/A N/A N/A N/A pathLook pathAdd N/A FindPackagePath packageName knownFile searchPaths N/A N/A pathAdd None N/A N/A N/A pathAdd corePaths N/A N/A pathAdd N/A N/A N/A regutil RegisterNamedPath registryAppName pathAdd N/A pathLook N/A N/A N/A error N/A details N/A N/A N/A *** The %s package could not be registered - %s N/A packageName details N/A *** Please ensure you have passed the correct paths on the command line. N/A *** - For packages, you should pass a path to the packages parent directory, N/A *** - and not the package directory itself... N/A FindRegisterApp N/A N/A appName knownFiles searchPaths N/A N/A N/A Find and Register a package.

       Assumes the core registry setup correctly.

     N/A regutil string N/A N/A N/A type knownFiles N/A type N/A N/A knownFiles N/A knownFiles N/A paths N/A N/A N/A N/A knownFile knownFiles N/A N/A pathLook N/A FindAppPath appName knownFile searchPaths N/A pathLook N/A N/A N/A N/A paths append pathLook N/A N/A N/A error N/A details N/A N/A ***  details N/A N/A N/A N/A regutil RegisterNamedPath appName N/A N/A string join paths ; N/A FindRegisterPythonExe N/A N/A exeAlias searchPaths actualFileNames N/A None N/A N/A Find and Register a Python exe (not necessarily *the* python.exe)

       Assumes the core registry setup correctly.
     N/A regutil string N/A N/A fname ok N/A FindPythonExe exeAlias actualFileNames searchPaths N/A N/A ok N/A N/A N/A N/A regutil RegisterPythonExe fname exeAlias N/A fname N/A FindRegisterHelpFile N/A N/A helpFile searchPaths helpDesc N/A None N/A N/A regutil N/A N/A N/A pathLook N/A FindHelpPath helpFile helpDesc searchPaths N/A N/A N/A error N/A details N/A N/A ***  details N/A N/A N/A N/A regutil RegisterHelpFile helpFile pathLook helpDesc N/A SetupCore N/A N/A searchPaths N/A N/A N/A Setup the core Python information in the registry.

       This function makes no assumptions about the current state of sys.path.

       After this function has completed, you should have access to the standard
       Python library, and the standard Win32 extensions
     N/A sys N/A path searchPaths N/A N/A N/A N/A N/A sys path append path N/A string os N/A regutil win32api win32con N/A N/A installPath corePaths N/A LocatePythonCore searchPaths N/A corePaths N/A N/A N/A regutil RegisterNamedPath None N/A N/A string join corePaths ; N/A hKey N/A N/A win32api RegCreateKey N/A N/A regutil GetRootKey N/A N/A regutil BuildDefaultPythonKey N/A N/A N/A N/A N/A win32api RegSetValue hKey InstallPath N/A win32con REG_SZ installPath N/A N/A N/A N/A win32api RegCloseKey hKey N/A win32paths N/A N/A N/A N/A N/A os path abspath N/A N/A N/A N/A os path split N/A win32api __file__ N/A 0 ; N/A N/A N/A os path abspath N/A N/A N/A N/A os path split N/A LocateFileName win32con.py;win32con.pyc N/A sys path N/A 0 N/A check N/A N/A N/A os path join N/A sys prefix PCBuild N/A N/A N/A N/A os path isdir check N/A N/A N/A N/A regutil RegisterNamedPath PCBuild check N/A RegisterShellInfo N/A N/A searchPaths N/A N/A N/A Registers key parts of the Python installation with the Windows Shell.

       Assumes a valid, minimal Python installation exists
       (ie, SetupCore() has been previously successfully run)
     N/A regutil win32con N/A suffix N/A IsDebug N/A exePath N/A FindRegisterPythonExe N/A Python%s.exe suffix searchPaths N/A N/A N/A regutil SetRegistryDefaultValue .py Python.File N/A win32con HKEY_CLASSES_ROOT N/A N/A N/A regutil RegisterShellCommand Open N/A N/A QuotedFileName exePath  "%1" %* &Run N/A N/A N/A regutil SetRegistryDefaultValue Python.File\DefaultIcon N/A %s,0 exePath N/A win32con HKEY_CLASSES_ROOT N/A N/A FindRegisterHelpFile Python.hlp searchPaths Main Python Documentation N/A N/A FindRegisterHelpFile ActivePython.chm searchPaths Main Python Documentation N/A N/A usage N/A regsetup.py - Setup/maintain the registry for Python apps.

Run without options, (but possibly search paths) to repair a totally broken
python registry setup.  This should allow other options to work.

Usage:   %s [options ...] paths ...
-p packageName  -- Find and register a package.  Looks in the paths for
                   a sub-directory with the name of the package, and
                   adds a path entry for the package.
-a appName      -- Unconditionally add an application name to the path.
                   A new path entry is create with the app name, and the
                   paths specified are added to the registry.
-c              -- Add the specified paths to the core Pythonpath.
                   If a path appears on the core path, and a package also
                   needs that same path, the package will not bother
                   registering it.  Therefore, By adding paths to the
                   core path, you can avoid packages re-registering the same path.
-m filename     -- Find and register the specific file name as a module.
                   Do not include a path on the filename!
--shell         -- Register everything with the Win95/NT shell.
--upackage name -- Unregister the package
--uapp name     -- Unregister the app (identical to --upackage)
--umodule name  -- Unregister the module

--description   -- Print a description of the usage.
--examples      -- Print examples of usage.
 N/A N/A sys argv N/A 0 N/A description If no options are processed, the program attempts to validate and set
the standard Python path to the point where the standard library is
available.  This can be handy if you move Python to a new drive/sub-directory,
in which case most of the options would fail (as they need at least string.py,
os.py etc to function.)
Running without options should repair Python well enough to run with
the other options.

paths are search paths that the program will use to seek out a file.
For example, when registering the core Python, you may wish to
provide paths to non-standard places to look for the Python help files,
library files, etc.

See also the "regcheck.py" utility which will check and dump the contents
of the registry.
 N/A examples Examples:
"regsetup c:\wierd\spot\1 c:\wierd\spot\2"
Attempts to setup the core Python.  Looks in some standard places,
as well as the 2 wierd spots to locate the core Python files (eg, Python.exe,
python14.dll, the standard library and Win32 Extensions.

"regsetup -a myappname . .\subdir"
Registers a new Pythonpath entry named myappname, with "C:\I\AM\HERE" and
"C:\I\AM\HERE\subdir" added to the path (ie, all args are converted to
absolute paths)

"regsetup -c c:\my\python\files"
Unconditionally add "c:\my\python\files" to the 'core' Python path.

"regsetup -m some.pyd \windows\system"
Register the module some.pyd in \windows\system as a registered
module.  This will allow some.pyd to be imported, even though the
windows system directory is not (usually!) on the Python Path.

"regsetup --umodule some"
Unregister the module "some".  This means normal import rules then apply
for that module.
 N/A N/A __name__ __main__ N/A N/A N/A N/A N/A len N/A sys argv 1 N/A N/A N/A sys argv N/A 1 N/A /? -? -help -h N/A N/A usage N/A N/A N/A N/A N/A len N/A sys argv 1 N/A N/A N/A N/A N/A sys argv N/A 1 N/A 0 N/A / - N/A N/A searchPath N/A N/A sys path N/A N/A arg N/A N/A sys argv N/A 1 N/A N/A N/A N/A searchPath append arg N/A N/A N/A searchPath append ..\Build N/A N/A N/A searchPath append ..\Lib N/A N/A N/A searchPath append .. N/A N/A N/A searchPath append ..\.. N/A N/A N/A searchPath append ..\..\lib N/A N/A N/A searchPath append ..\build N/A N/A N/A searchPath append ..\..\pcbuild N/A Attempting to setup/repair the Python core N/A N/A SetupCore searchPath N/A N/A RegisterShellInfo searchPath N/A N/A FindRegisterHelpFile PyWin32.chm searchPath Pythonwin Reference N/A Registration complete - checking the registry... N/A regcheck N/A N/A N/A regcheck CheckRegistry N/A N/A searchPaths N/A N/A getopt string N/A N/A opts args N/A N/A getopt getopt N/A N/A sys argv N/A 1 p:a:m:c N/A shell upackage= uapp= umodule= description examples N/A arg args N/A N/A N/A N/A searchPaths append arg N/A N/A o a opts N/A N/A N/A o --description N/A N/A description N/A N/A o --examples N/A N/A examples N/A N/A o --shell N/A N/A Registering the Python core. N/A N/A RegisterShellInfo searchPaths N/A N/A o -p N/A N/A Registering package a N/A N/A FindRegisterPackage a None searchPaths N/A N/A o N/A --upackage --uapp N/A N/A regutil N/A Unregistering application/package a N/A N/A N/A regutil UnregisterNamedPath a N/A N/A o -a N/A N/A regutil N/A path N/A N/A string join searchPaths ; N/A Registering application a to path path N/A N/A N/A regutil RegisterNamedPath a path N/A N/A o -c N/A N/A N/A N/A len searchPaths N/A N/A error -c option must provide at least one additional path N/A win32api regutil N/A currentPaths N/A N/A string split N/A N/A regutil GetRegisteredNamedPath None ; N/A oldLen N/A len currentPaths N/A newPath searchPaths N/A N/A N/A newPath currentPaths N/A N/A N/A N/A currentPaths append newPath N/A N/A N/A len currentPaths oldLen N/A N/A N/A Registering %d new core paths N/A N/A len currentPaths oldLen N/A N/A N/A regutil RegisterNamedPath None N/A N/A string join currentPaths ; N/A N/A All specified paths are already registered.