mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
parse imports with fixed paths before running all the code
This commit is contained in:
@@ -61,11 +61,16 @@ func main() {
|
||||
if e != nil {
|
||||
panic(e)
|
||||
}
|
||||
_, err := importMod(Args[0], ex, true, global)
|
||||
translated, err := translateImport(Args[0], ex, true)
|
||||
if err.EXISTS {
|
||||
panicErr(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
_, runimeErr := runTranslatedImport(translated, global)
|
||||
if runimeErr.EXISTS {
|
||||
panicErr(runimeErr)
|
||||
os.Exit(1)
|
||||
}
|
||||
if threadCount > 0 {
|
||||
<-threadChan
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user