Python Forum
an app's scripting system in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
an app's scripting system in Python
#1
if i want to create a new app that has its own scripting system with scripts written in Python, what do i need to learn/know? what if i am coding the app in C? what if i am coding the app in Python? what if i am coding the app in JavaScript?

this would be a program to be run in some way which looks for a specific directory relative to the user's home directory (unless given a different name or path at startup). in this directory will be the script by name. if multiple directories are given, each is searched in the given order. when found, it is checked for ownership and if correct, it is run. it either carries out a requested action or deals data given to it or requested from it. there seems to be quite many ways to carry this out, especially if the app is also coded in Python (and there need to be certain security concerns).

probably helpful is to know of any existing apps in C/C++ or Python that use Python as a scripting language.

i have already used Python as a configuration language. the code sets some variables which are run via exec() to set up a dictionary of variable names, giving the user the opportunity to write some more advanced code that just a simple assignment, if they wish.

i've also done the above as a module.

imagine a text editor with every keystroke running a script.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  using Python as an program's internal scripting system Skaperen 0 1,751 Aug-08-2019, 11:41 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020