You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The import keyword appears to be looking relative to the CWD, rather than the file path of the current file.
To Reproduce
The following folder structure and files illustrate the problem
/folder1/ a.morpho
/folder1/ b.morpho -> import "a.morpho"
/folder2/ c.morpho -> import "../b.morpho"
Running c.morpho yields an error that "a.morpho" could not be found.
Expected behavior
import should simply find and import the file.
The text was updated successfully, but these errors were encountered:
Describe the bug
The import keyword appears to be looking relative to the CWD, rather than the file path of the current file.
To Reproduce
The following folder structure and files illustrate the problem
/folder1/ a.morpho
/folder1/ b.morpho -> import "a.morpho"
/folder2/ c.morpho -> import "../b.morpho"
Running c.morpho yields an error that "a.morpho" could not be found.
Expected behavior
import should simply find and import the file.
The text was updated successfully, but these errors were encountered: