* Evaluate argument to `import'.
This commit is contained in:
		
							parent
							
								
									033d7c6593
								
							
						
					
					
						commit
						eb8284ddaa
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -9,7 +9,8 @@ static Expr primImport(EvalState & state, const ATermVector & args) | |||
| { | ||||
|     ATMatcher m; | ||||
|     string path; | ||||
|     if (!(atMatch(m, args[0]) >> "Path" >> path)) | ||||
|     Expr fn = evalExpr(state, args[0]); | ||||
|     if (!(atMatch(m, fn) >> "Path" >> path)) | ||||
|         throw Error("path expected"); | ||||
|     return evalFile(state, path); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue