| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ | |||
| 37 | 37 | <Import Project="$(QtMsBuild)\qt_defaults.props" /> | |
| 38 | 38 | </ImportGroup> | |
| 39 | 39 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" Label="QtSettings"> | |
| 40 | - <QtInstall>qt6msvc</QtInstall> | ||
| 40 | + <QtInstall>qt6msvc,archlinux</QtInstall> | ||
| 41 | 41 | <QtModules>core</QtModules> | |
| 42 | 42 | <QtBuildConfig>debug</QtBuildConfig> | |
| 43 | 43 | </PropertyGroup> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | <SchemaVersion>2.0</SchemaVersion> | |
| 5 | 5 | <ProjectGuid>5dc9d256-2352-43d0-948f-ad7bfbf06815</ProjectGuid> | |
| 6 | 6 | <ProjectHome>.</ProjectHome> | |
| 7 | - <StartupFile>codebuilder_dir.py</StartupFile> | ||
| 7 | + <StartupFile>shell.py</StartupFile> | ||
| 8 | 8 | <SearchPath> | |
| 9 | 9 | </SearchPath> | |
| 10 | 10 | <WorkingDirectory>.</WorkingDirectory> | |
@@ -22,6 +22,7 @@ | |||
| 22 | 22 | </PropertyGroup> | |
| 23 | 23 | <ItemGroup> | |
| 24 | 24 | <Compile Include="codebuilder_dir.py" /> | |
| 25 | + <Compile Include="shell.py" /> | ||
| 25 | 26 | </ItemGroup> | |
| 26 | 27 | <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" /> | |
| 27 | 28 | <!-- Uncomment the CoreCompile target to enable the Build command in | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,37 @@ | |||
| 1 | + import os | ||
| 2 | + | ||
| 3 | + def parsepattern(pattern:str ,r): #example cl$r%(v1).py:v1=$R*0.11+0.86 | ||
| 4 | + pattern=pattern.replace("$R",r) | ||
| 5 | + pdb=pattern.split(":") | ||
| 6 | + vs={} | ||
| 7 | + vl=[] | ||
| 8 | + for i in pdb[1:]: | ||
| 9 | + idb = i.split("=") | ||
| 10 | + vl.append(idb[0]) | ||
| 11 | + vs[idb[0]]=eval(idb[1]) | ||
| 12 | + | ||
| 13 | + print(vs) | ||
| 14 | + ptr=pdb[0] | ||
| 15 | + for i in vl: | ||
| 16 | + ptr=ptr.replace(f"%({i})",str(vs[i])) | ||
| 17 | + return ptr | ||
| 18 | + | ||
| 19 | + | ||
| 20 | + | ||
| 21 | + while True: | ||
| 22 | + x=input(">>") | ||
| 23 | + if x=="exit": | ||
| 24 | + break | ||
| 25 | + elif x=="cl": | ||
| 26 | + os.system("clear") | ||
| 27 | + elif x=="r": | ||
| 28 | + r=int(input("no of time to repeat")) | ||
| 29 | + P=input("pattern") | ||
| 30 | + b=input("path of source") | ||
| 31 | + l= input("lang") | ||
| 32 | + for i in range(r): | ||
| 33 | + | ||
| 34 | + #os.system(f"./codebuilder.exe {l} {b} output/{parsepattern(P,i)}") | ||
| 35 | + print(f"./codebuilder.exe {l} {b} output/{parsepattern(P,str(i))}") | ||
| 36 | + | ||
| 37 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments