Skip to content

Add support for absolute dialect path. - #31

Open
gmaden wants to merge 1 commit into
mainfrom
maden/dynamic-dialects
Open

Add support for absolute dialect path.#31
gmaden wants to merge 1 commit into
mainfrom
maden/dynamic-dialects

Conversation

@gmaden

@gmaden gmaden commented Dec 5, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/server.ts
console.log(` Importing: ${dialect}`);
const dialect_path = dialect.startsWith('/')
? dialect
: path.join(process.execPath, dialect);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you may want path.resolve() here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants