R
R
Ruslan Ezhgurov2016-07-05 21:47:21
Python
Ruslan Ezhgurov, 2016-07-05 21:47:21

How to pack a python parser into a batch file for windows?

I took the task home, you need to write a parser and just run it from Windows so that the result is written to a file, it takes a couple of hours, but there is one BUT - I have never run a python script on windows, and the customer asks for Windows. Tell me the structure or stages of packing my parser into a batch file. I work exclusively on linuxoids and there are big problems with Windows. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
strelmax, 2016-07-05
@Oyaseo

make in exe
py2exe
https://habrahabr.ru/post/87224/

A
Alexey, 2016-07-05
@RusTech

python script.py - if python is registered at the customer's PATH
c:\python34\python.exe script.py - if not registered
if the batch file is not in the same place as the script, then add the path to the script accordingly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question