Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
miegorengman
Wanderer


Joined: 05 Sep 2008
Posts: 52

PostPosted: Fri Nov 15, 2024 3:33 am   

lua and python, what a world!
 
I am using lua to active .bat and .py files. historically this has worked fine. I made a .py file that would send me emails and it worked (new cmud install since then).


the .py file itself works fine. it runs when i test it in Idle and when i double click/select and hit enter.

when i use
Code:
#lua {os.execute(("c:\Users\miegorengman\Documents\`python files\doesMyThing.py")}
or just set the alias language to lua and use
Code:
os.execute(("c:\Users\miegorengman\Documents\`python files\doesMyThing.py")


i get the cmdPrompt flash like it's running, but then nothing happens. it's almost like the .py needs a little more time to run but CMUD is cutting it off...this is conjecture but i don't really have any other ideas. I also tried giving the .py a layer of separation by using a .bat to run the .py...as maybe that would prevent the .py from getting cut short before it completes running. if i manually activate the .bat it works, the .py runs. If i use CMUD, same issue, CMDprompt flashes on/off and nothing happens.

does anyone have any ideas? thank you much :)
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Sun Nov 17, 2024 2:09 pm   
 
That looks like unmatched parenthesis in both cases.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net