Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : pretty_sln.pyo
�
��Rac@s�dZddlmZddlZddlZddlZddlZdZd�Zd�Z	d�Z
d�Zd	�Zd
�Z
edkr�eje
��ndS(s�Prints the information in a sln file in a diffable way.

   It first outputs each projects in alphabetical order with their
   dependencies.

   Then it outputs a possible build order.
i����(tprint_functionNsnsylvain (Nicolas Sylvain)cCsRx4||D](}||krt||||�qqWt|�|j|�dS(N(tBuildProjecttprinttappend(tprojecttbuilttprojectstdepstdep((sh/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/tools/pretty_sln.pyRs

cCs=t�}t�}tjd�}tjd�}tjd�}tjd�}tjd�}t}t|�}	xP|	D]H}
|j|
�}|r|jd�jd�dkr�qvn|jd�jd	d
�}|jd�jd	d
�|jd�|jd�g||<g||<qvn|j|
�}|r;d}qvn|j|
�}|r\t
}qvn|j|
�}|r}t}qvn|j|
�}|rv|rv|rv||j|jd��qvqvqvWxn|D]f}
g}xG||
D];}x2|D]*}||d|kr�|j|�q�q�Wq�Wt|�||
<q�W||fS(
NsN^Project\("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}"\) = "(.*)", "(.*)", "(.*)"$s^EndProject$s4ProjectSection\(ProjectDependencies\) = postProject$sEndProjectSection$s *({.*}) = ({.*})$iticui����t_gyptii(
tdicttretcompiletFalsetopentsearchtgrouptfindtreplacetNonetTrueRtsorted(t
solution_fileRtdependenciest
begin_projecttend_projectt	begin_deptend_deptdep_linetin_depstsolutiontlinetresultstcurrent_projectRt
new_dep_arrayRtproject_info((sh/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/tools/pretty_sln.pyt
ParseSolution"sZ			




cCs�td�td�td�td�xvt|j��D]b\}}td|�td||d�|r�x|D]}td|�qxWntd�q;Wtd�dS(	Ns'---------------------------------------sDependencies for all projectss'--                                   --sProject : %ss	Path : %sis  - %sR(RRtitems(RRRtdep_listR((sh/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/tools/pretty_sln.pytPrintDependencieshs




cCs�td�td�td�td�g}xBt|j��D].\}}||krAt||||�qAqAWtd�dS(Ns'---------------------------------------s'Build order                            s'--                                   --(RRR'R(RRRRt_((sh/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/tools/pretty_sln.pytPrintBuildOrderxs



cCs�x�|D]�}td�td�t|�t|�t|�td�td�tjjtjjtjjtjd�||d��}t}d|dtjjtjd�g}|j	tjd�|j
|�qWdS(Ns%-------------------------------------iiRs$(SolutionDir)=%s\i(Rtostpathtabspathtjointdirnametsystargvt
pretty_vcprojtextendtmain(RRtproject_pathtprettyR2((sh/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/tools/pretty_sln.pytPrintVCProj�s 







( cCs�ttj�dkr.tdtjd�dSttjd�\}}t||�t||�dtjkr}t|�ndS(Nis"Usage: %s "c:\path\to\project.sln"iis--recursive(tlenR1R2RR&R)R+R8(RR((sh/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/tools/pretty_sln.pyR5�s


t__main__(t__doc__t
__future__RR,R
R1R3t
__author__RR&R)R+R8R5t__name__texit(((sh/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/tools/pretty_sln.pyt<module>
s	
	F		
		
© 2025 XylotrechusZ