Compiled Moves?

Post all your questions, problems and suggestions here.

Compiled Moves?

Postby docbill » Sat Jan 14, 2017 12:23 am

While I have been programming for a lonnnng time, I am relatively new to python. So a newbie question. I see many of pomoco's files are compiled python code. How do I compile a move that I have written?
docbill
 
Posts: 39
Joined: Sat Mar 02, 2013 2:10 am

Re: Compiled Moves?

Postby roboalchemist » Mon Jan 16, 2017 1:59 am

Python dynamically pseudo-compiles to bytecode, so you don't have to do anything. Just put python file in the moves folder, run PoMoCo, and it should show up as a button you can press to run.
---
Joseph Schlesinger - ArcBotics Co-Founder/CTO
roboalchemist
Site Admin
 
Posts: 669
Joined: Mon Jul 16, 2012 3:02 am

Re: Compiled Moves?

Postby docbill » Wed Jan 25, 2017 10:18 pm

Thanks, but that wasn't my question. I noticed in the moves folder that the py files are accompanied by pyc (compiled) files which I assume run faster. I was asking how I could generate them for my moves.
docbill
 
Posts: 39
Joined: Sat Mar 02, 2013 2:10 am

Re: Compiled Moves?

Postby roboalchemist » Sat Feb 25, 2017 11:28 am

There's no need to generate them - they're generated automatically whenever the file is run.
---
Joseph Schlesinger - ArcBotics Co-Founder/CTO
roboalchemist
Site Admin
 
Posts: 669
Joined: Mon Jul 16, 2012 3:02 am


Return to Questions, Problems and Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron