Ë F�RœÝÝaïãóV—dZddlZddlZddlZddlZddlmZd„Zd„Z Gd„de «Z y)z+Visual Studio user preferences file writer.éNcór—d|vsd|vr|Stjjdd«jtj«}|D]j}tj j ||«}tj j|«sŒCtj|tj«sŒh|cS|S)a{If there are no slashes in the command given, this function searches the PATH env to find the given command, and converts it to an absolute path. We have to do this because MSVS is looking for an actual file to launch a debugger on, not just a command line. Note that this happens at GYP time, so anything needing to be built needs to have a full path.Ú/Ú\ÚPATHÚ) ÚosÚenvironÚgetÚsplitÚpathsepÚpathÚjoinÚisfileÚaccessÚX_OK)ÚcommandÚpathsr Úitems ú5/usr/lib/python3.12/site-packages/gyp/MSVSUserFile.pyÚ_FindCommandInPathrsˆ€ð ˆG�^�t˜w‘ð €Nô �J‰J�N‰N˜6 "Ó %× +Ñ +¬B¯J©JÓ 7€EÛˆÜ �W‰W�\‰\˜$ Ó (€dÜ �‰�‰˜Õ ¤"§)¡)¨D´"·'±'Õ":ØŠ ðð €.ócóä—g}|D]h}|jd«dk7r&dj|jd««}d|z}ntjd|«rd|z}|j |«Œj|S)NÚ"éÿÿÿÿz""z"%s"z[ \t\n])Úfindrr ÚreÚsearchÚappend)ÚargsÚnew_argsÚargs rÚ_QuoteWin32CommandLineArgsr"&sn€Ø €(Û €cð ‡x�x�ƒ}˜ÒØ �I‰I�c—i‘i “nÓ %€cØ �S‰L�cô �‰�:˜sÔ #Ø �S‰L€cØ ‡O�O�CÕðð €/rcó.—eZdZdZd„Zd„Zidfd„Zd„Zy)ÚWriterz(Visual Studio XML user user file writer.có<—||_||_||_i|_y)z—Initializes the user file. Args: user_file_path: Path to the user file. version: Version info. name: Name of the user file. N)Úuser_file_pathÚversionÚnameÚconfigurations)Úselfr&r'r(s rÚ__init__zWriter.__init__9s"€ð)€DÔØ€D„LØ€D„IØ€DÕrcó*—dd|ig|j|<y)zTAdds a configuration to the project. Args: name: Configuration name. Ú ConfigurationÚNameN)r))r*r(s rÚ AddConfigzWriter.AddConfigFs€ð "1°6¸4°.Ð A€D×јÒrrcó—t|«}t|d«}|rJt|t«r:|j «D��cgc] \}}|›d|›d�‘Œ}}}dj |«}nd}did|“d|“d dj |d d «“d t j«“d |“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd“ddddddœ¥g} ||jvr|j|«|j|j| «y cc}}w) a;Adds a DebugSettings node to the user file for a particular config. Args: command: command line to run. First element in the list is the executable. All elements of the command will be quoted if necessary. working_directory: other files which may trigger the rule. (optional) rz="rÚ rÚ DebugSettingsÚCommandÚWorkingDirectoryÚCommandArgumentséNÚ RemoteMachineÚ EnvironmentÚEnvironmentMergeÚtrueÚAttachÚfalseÚ DebuggerTypeÚ3ÚRemoteÚ1Ú RemoteCommandÚHttpUrlÚPDBPathÚ SQLDebuggingÚDebuggerFlavorÚ0Ú MPIRunCommandÚMPIRunArgumentsÚMPIRunWorkingDirectory)ÚApplicationCommandÚApplicationArgumentsÚ ShimCommandÚ MPIAcceptModeÚMPIAcceptFilter) r"rÚ isinstanceÚdictÚitemsrÚsocketÚ gethostnamer)r/r) r*Ú config_namerÚ environmentÚworking_directoryÚ abs_commandÚkeyÚvalÚenv_listÚn_cmds rÚAddDebugSettingszWriter.AddDebugSettingsNs­€ô)¨Ó1€Gä$ W¨Q¡ZÓ0€Ká”z +¬tÔ4à#.×#4Ñ#4Ô#6ô8Ù#6‘i�s˜3ò #¢CÒ(Ø#6ðñ8à—H‘H˜XÓ&�kà€kà ðˆi˜ðØ Ð"3ðà  #§(¡(¨7°1°2¨;Ó"7ððœv×1Ñ1Ó3ðð˜[ð ð ! &ð ð˜ðð˜cðð˜ðð˜rðð˜ðð˜ðð ˜bð!ð" ð#ð$˜rð%ð&  ð'ð('¨ð)ð*%'Ø&(ØØ!Ø!#ò3ð €Eð<˜$×-Ñ-Ñ-Ø ‡n�n�[Ô!ð ×ј Ñ$×+Ñ+¨EÕ2ùóQ8s¿D có—dg}t|jj««D]\}}|j|«Œd|jj «|j dœ|g}tj||jd¬«y)zWrites the user file.ÚConfigurationsÚVisualStudioUserFile)ÚVersionr.z Windows-1252)ÚencodingN) Úsortedr)rQrr'ÚProjectVersionr(Úeasy_xmlÚWriteXmlIfChangedr&)r*ÚconfigsÚconfigÚspecÚcontents rÚWriteIfChangedzWriter.WriteIfChanged‡s‚€àÐ €Gܘt×2Ñ2×8Ñ8Ó:Ö;‰ ˆ�Ø ‡n�n�TÕð<ð&ØŸ<™<×6Ñ6Ó8ØŸ ™ ñðð €Gô  ×јw¨×(;Ñ(;Ø(6ö8rN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r+r/r\rj©rrr$r$6s%„Ù0ò òBðBDØ)+ó73ór 8rr$) rnrrrRÚ gyp.commonÚgypÚ gyp.easy_xmlrdrr"Úobjectr$rorrÚrts1ðñ 2ã Û Û ãÝò ò*ô ]8ˆVõ]8r