dansanderson / picotool

Tools and Python libraries for manipulating Pico-8 game files. http://www.lexaloffle.com/pico-8.php
MIT License
367 stars 46 forks source link

Unable to import modules from sister folders #51

Open dxu opened 5 years ago

dxu commented 5 years ago

If i have two folders at the root of my directory, I'm unable to import modules from one folder to the other.


└── root/
    └── folderA/
        ├── module1
        └── module2
    └── folderB/
        ├── module3
        └── module4

When I require module3 in module1 by calling require(folderB/module3), I get an error.

I'm able to fix this error by commenting out the "require() relative filenames" check, and instead calling require('../folderB/module3'), but this is explicitly disallowed as documented.