Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Question about modules #50

Open
enty8080 opened this issue Aug 12, 2020 · 2 comments
Open

Question about modules #50

enty8080 opened this issue Aug 12, 2020 · 2 comments

Comments

@enty8080
Copy link

enty8080 commented Aug 12, 2020

@jcubic @H2CO3 @mattfenwick @sfan5 @idmitrievsky

1. Is there any way to import .spn file to code?

2. What is the default path for .spn modules on Linux and Windows? Note: This is a path for modules to import them from everywhere.

@enty8080 enty8080 changed the title Question: How to import module? Question about modules Aug 12, 2020
@H2CO3
Copy link
Owner

H2CO3 commented Aug 13, 2020

  1. Not sure what you mean by "to code", but you can import a module by calling the require() function in the standard library.
  2. Currently there is no such thing.

@enty8080
Copy link
Author

@H2CO3 Soon I’ll create a PR to add the default path to require().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants