File: make_exe.py

package info (click to toggle)
dxf2gcode 20191025-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,020 kB
  • sloc: python: 10,333; xml: 44; sh: 25; makefile: 17
file content (25 lines) | stat: -rw-r--r-- 665 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/python
# -*- coding: utf-8 -*-

import os
import subprocess
import sys

PYTHONPATH = os.path.split(sys.executable)[0]
pyinpfad = os.path.join(PYTHONPATH, "Scripts\\pyinstaller-script.py")

pyt = os.path.join(PYTHONPATH, "python.exe")
filepfad = os.path.realpath(os.path.dirname(sys.argv[0]))
exemakepfad = filepfad
file_ = "dxf2gcode"
icon = "%s\\images\\DXF2GCODE-001.ico" % filepfad

options = "--noconsole --icon=%s" % icon
print(options)

cmd = "%s %s %s %s\\%s.py" % (pyt, pyinpfad, options, filepfad, file_)
print(cmd)
print(subprocess.call(cmd))

print("\n!!!!!!!Do not forget the language folder!!!!!!")
print("\nREADY")