@@ -74,7 +74,71 @@ def __init__(self, dry=False):
7474 self ._locate_ore_exe ()
7575
7676 def _locate_ore_exe (self ):
77- self .ore_exe = "/Users/peter.caspers/oreplus2/build/macOS-clang-ninja-relwithdebinfo/ore/App/ore"
77+ if os .name == 'nt' :
78+ if platform .machine ()[- 2 :] == "64" :
79+ if os .path .isfile ("..\\ ..\\ App\\ bin\\ x64\\ Release\\ ore.exe" ):
80+ self .ore_exe = "..\\ ..\\ App\\ bin\\ x64\\ Release\\ ore.exe"
81+ elif os .path .isfile ("..\\ ..\\ ..\\ App\\ bin\\ x64\\ Release\\ ore.exe" ):
82+ self .ore_exe = "..\\ ..\\ ..\\ App\\ bin\\ x64\\ Release\\ ore.exe"
83+ elif os .path .isfile ("..\\ ..\\ build\\ App\\ ore.exe" ):
84+ self .ore_exe = "..\\ ..\\ build\\ App\\ ore.exe"
85+ elif os .path .isfile ("..\\ ..\\ ..\\ build\\ App\\ ore.exe" ):
86+ self .ore_exe = "..\\ ..\\ ..\\ build\\ App\\ ore.exe"
87+ elif os .path .isfile ("..\\ ..\\ ..\\ build\\ ore\\ App\\ ore.exe" ):
88+ self .ore_exe = "..\\ ..\\ ..\\ build\\ ore\\ App\\ ore.exe"
89+ elif os .path .isfile ("..\\ ..\\ ..\\ ..\\ build\\ ore\\ App\\ ore.exe" ):
90+ self .ore_exe = "..\\ ..\\ ..\\ ..\\ build\\ ore\\ App\\ ore.exe"
91+ elif os .path .isfile ("..\\ ..\\ ..\\ build\\ ore\\ App\\ RelWithDebInfo\\ ore.exe" ):
92+ self .ore_exe = "..\\ ..\\ ..\\ build\\ ore\\ App\\ RelWithDebInfo\\ ore.exe"
93+ elif os .path .isfile ("..\\ ..\\ ..\\ ..\\ build\\ ore\\ App\\ RelWithDebInfo\\ ore.exe" ):
94+ self .ore_exe = "..\\ ..\\ ..\\ ..\\ build\\ ore\\ App\\ RelWithDebInfo\\ ore.exe"
95+ elif os .path .isfile ("..\\ ..\\ build\\ App\\ Release\\ ore.exe" ):
96+ self .ore_exe = "..\\ ..\\ build\\ App\\ Release\\ ore.exe"
97+ elif os .path .isfile ("..\\ ..\\ ..\\ build\\ App\\ Release\\ ore.exe" ):
98+ self .ore_exe = "..\\ ..\\ ..\\ build\\ App\\ Release\\ ore.exe"
99+ else :
100+ print_on_console ("ORE executable not found." )
101+ quit ()
102+ else :
103+ if os .path .isfile ("..\\ ..\\ App\\ bin\\ Win32\\ Release\\ ore.exe" ):
104+ self .ore_exe = "..\\ ..\\ App\\ bin\\ Win32\\ Release\\ ore.exe"
105+ elif os .path .isfile ("..\\ ..\\ ..\\ App\\ bin\\ Win32\\ Release\\ ore.exe" ):
106+ self .ore_exe = "..\\ ..\\ ..\\ App\\ bin\\ Win32\\ Release\\ ore.exe"
107+ elif os .path .isfile ("..\\ ..\\ build\\ App\\ ore.exe" ):
108+ self .ore_exe = "..\\ ..\\ build\\ App\\ ore.exe"
109+ elif os .path .isfile ("..\\ ..\\ ..\\ build\\ App\\ ore.exe" ):
110+ self .ore_exe = "..\\ ..\\ ..\\ build\\ App\\ ore.exe"
111+ else :
112+ print_on_console ("ORE executable not found." )
113+ quit ()
114+ else :
115+ if os .path .isfile ("../../App/build/ore" ):
116+ self .ore_exe = "../../App/build/ore"
117+ elif os .path .isfile ("../../../App/build/ore" ):
118+ self .ore_exe = "../../../App/build/ore"
119+ elif os .path .isfile ("../../build/App/ore" ):
120+ self .ore_exe = "../../build/App/ore"
121+ elif os .path .isfile ("../../../build/App/ore" ):
122+ self .ore_exe = "../../../build/App/ore"
123+ elif os .path .isfile ("../../../build/App/ore" ):
124+ self .ore_exe = "../../../build/App/ore"
125+ elif os .path .isfile ("../../../../build/App/ore" ):
126+ self .ore_exe = "../../../../build/App/ore"
127+ elif os .path .isfile ("../../App/ore" ):
128+ self .ore_exe = "../../App/ore"
129+ elif os .path .isfile ("../../../App/ore" ):
130+ self .ore_exe = "../../../App/ore"
131+ elif os .path .isfile ("../../../build/ore/App/ore" ):
132+ self .ore_exe = "../../../build/ore/App/ore"
133+ self .ore_plus_exe = "../../../build/AppPlus/ore_plus"
134+ elif os .path .isfile ("../../../../build/ore/App/ore" ):
135+ self .ore_exe = "../../../../build/ore/App/ore"
136+ self .ore_plus_exe = "../../../../build/AppPlus/ore_plus"
137+ elif os .path .isfile ("/ore/App/ore" ):
138+ self .ore_exe = "/ore/App/ore"
139+ else :
140+ print_on_console ("ORE executable not found." )
141+ quit ()
78142 print_on_console ("Using ORE executable " + (os .path .abspath (self .ore_exe )))
79143
80144 def print_headline (self , headline ):
0 commit comments