Skip to content

Commit

Permalink
[script] allow using local path as config
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin authored and sequencer committed May 27, 2024
1 parent 3654959 commit c44bc92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/src/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ object Main:
def resolveElaborateConfig(
configName: String
): os.Path =
os.pwd / "configgen" / "generated" / s"$configName.json"
if os.exists(os.Path(configName, os.pwd)) then
os.Path(configName)
else
os.pwd / "configgen" / "generated" / s"$configName.json"
end resolveElaborateConfig

def prepareOutputDir(
Expand Down

0 comments on commit c44bc92

Please sign in to comment.