1

I want to modify this Python script on Windows 7.

https://github.com/Jeremy1980/LDBoxer

The original author seems to have compiled the program into a Windows executable. Is it possible to run the script without compiling it? I tried the following at the command prompt:

python LDBoxer.py

But Windows says it does not recognize 'python'. What do I need to install and what is the correct command line syntax? According to the docs, this is the correct way to run the executable:

LDBoxer_2017a.exe ldraw_library_location  ldraw_model_location_for_conversion

Thanks.

1 Answer 1

2

You need to make sure you have python installed, then make sure you are running the correct python compiling command. Sometimes when installing python 2 you need to run the command python2 or python27.

You can install python here. It looks like they wrote it with python 2.x so I would recommend installing python version 2.7 unless you want to manually convert it to python 3.x.

You should be able to run the .exe just by double clicking, or right click then run.

Sign up to request clarification or add additional context in comments.

8 Comments

I am looking at the Python downloads page. python.org/downloads/windows Should I install "Python 2.7.2 - 2011-06-11"? It is the last version before Python 3.x.
Yes, to edit the code it would be better to install python 2.7
if python LDBoxer.py doesn't work, try python27 LDBoxer.py if that doesn't work try python2 LDBoxer.py, if that doesn't work then you need to find the folder that the python packages downloaded to, and run <folder_name> LDBoxer.py
The arguments would immediately follow the script name. for example python LDBoxer.py arg1 arg2 ar3 use as many arguments as the script needs to execute.
I don't think so. If you are truly stuck you should open another question so this thread doesn't go off topic.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.