Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Importing Functions #3

Closed
Super99Master opened this issue Feb 23, 2019 · 2 comments
Closed

Auto-Importing Functions #3

Super99Master opened this issue Feb 23, 2019 · 2 comments

Comments

@Super99Master
Copy link

Hello everyone,
The idea is to have a main script that at a fixed point (startup) wuold read all files in a sub-folder (/commands) and if the file has the right format (normal .py script + a specific header) it would import it as an available command/function in the LPHK language.

The script will check for the libs that it needs to run that specific script and install it via pip.

In the header, there will be a way to rename functions.
When using an importend function you need to use the name of the file "x" and the name of the function "y".
In the LPHK script, you will need to write x.y as a command.
When importing a file, the script will create a dictionary and associate a specific command with a custom name.
Something like function['WEB_NEW']=Web.open_ new.
Thanks to this, you'll be able to use the custon name and make the LPHK script look "nicer".

@Super99Master Super99Master changed the title Auto-Importing Commands Auto-Importing Functions Mar 18, 2019
@nimaid
Copy link
Owner

nimaid commented May 8, 2019

I have been busy with work, but have been wanting to move LPHK forward badly. I have decided to at least get this feature done within the next month because that way the community could easily write new features for LPHK in the interim between periods of development on my end. Stay tuned!

@nimaid
Copy link
Owner

nimaid commented Nov 17, 2019

Not done yet B/C of other features, but in the TODO list.

@nimaid nimaid closed this as completed Nov 17, 2019
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

No branches or pull requests

2 participants