From 47c45d90320e6405edcef29d3fe4ca2c37b375fd Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Thu, 11 Feb 2016 23:40:16 -0800 Subject: [PATCH] Added windows batch script --- scripts/atrcopy.bat | 21 +++++++++++++++++++++ setup.py | 7 ++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 scripts/atrcopy.bat diff --git a/scripts/atrcopy.bat b/scripts/atrcopy.bat new file mode 100755 index 0000000..c725cf4 --- /dev/null +++ b/scripts/atrcopy.bat @@ -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 """ diff --git a/setup.py b/setup.py index 9d761cb..d145654 100644 --- a/setup.py +++ b/setup.py @@ -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",