FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

added shell for codebuilder · sca255/codebuilder@f164fe6 · GitHub

Commit f164fe6

Browse files
committed
added shell for codebuilder
1 parent dedbfee commit f164fe6

3 files changed

Lines changed: 40 additions & 2 deletions

File tree

‎codebuilder/codebuilder.vcxproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<Import Project="$(QtMsBuild)\qt_defaults.props" />
3838
</ImportGroup>
3939
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" Label="QtSettings">
40-
<QtInstall>qt6msvc</QtInstall>
40+
<QtInstall>qt6msvc,archlinux</QtInstall>
4141
<QtModules>core</QtModules>
4242
<QtBuildConfig>debug</QtBuildConfig>
4343
</PropertyGroup>

‎codebuilder_dir/codebuilder_dir.pyproj‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<SchemaVersion>2.0</SchemaVersion>
55
<ProjectGuid>5dc9d256-2352-43d0-948f-ad7bfbf06815</ProjectGuid>
66
<ProjectHome>.</ProjectHome>
7-
<StartupFile>codebuilder_dir.py</StartupFile>
7+
<StartupFile>shell.py</StartupFile>
88
<SearchPath>
99
</SearchPath>
1010
<WorkingDirectory>.</WorkingDirectory>
@@ -22,6 +22,7 @@
2222
</PropertyGroup>
2323
<ItemGroup>
2424
<Compile Include="codebuilder_dir.py" />
25+
<Compile Include="shell.py" />
2526
</ItemGroup>
2627
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
2728
<!-- Uncomment the CoreCompile target to enable the Build command in

‎codebuilder_dir/shell.py‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL