Added windows batch script

This commit is contained in:
Rob McMullen 2016-02-11 23:40:16 -08:00
parent 61a855a062
commit 47c45d9032
2 changed files with 27 additions and 1 deletions

21
scripts/atrcopy.bat Executable file
View File

@ -0,0 +1,21 @@
@echo off
rem = """-*-Python-*- script
rem Windows batch script based on pylint's batch scripts
rem Don't know how this works, but it does.
rem
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %*
goto exit
"""
# -------------------- Python section --------------------
import os,sys
import atrcopy
atrcopy.run()
DosExitLabel = """
:exit
rem """

View File

@ -23,13 +23,18 @@ classifiers = [
with open("README.rst", "r") as fp:
long_description = fp.read()
if sys.platform.startswith("win"):
scripts = ["scripts/atrcopy.bat"]
else:
scripts = ["scripts/atrcopy"]
setup(name="atrcopy",
version=version,
author="Rob McMullen",
author_email="feedback@playermissile.com>",
url="https://github.com/robmcmullen/atrcopy",
py_modules=["atrcopy"],
scripts=["scripts/atrcopy"],
scripts=scripts,
description="Disk image utilities for Atari 8-bit emulators",
long_description=long_description,
license="GPL",