Skip to content

Commit

Permalink
new file: .gitignore
Browse files Browse the repository at this point in the history
	new file:   LNADataExtract.spec
	new file:   compile.bat
	modified:   readMe.md
  • Loading branch information
AlecRobinGould committed Apr 4, 2024
1 parent 74a2e19 commit 3ec3a42
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/dist
/build
.spec
.zip
.pyc
37 changes: 37 additions & 0 deletions LNADataExtract.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['dataExtract.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='LNADataExtract',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
1 change: 1 addition & 0 deletions compile.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller --onefile --noconsole --name LNADataExtract dataExtract.py
11 changes: 9 additions & 2 deletions readMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Mean gain

Example:

`python dataExtract.py "SLB008"` or compiled version: `dataExtract.exe "SLB008"`
`python dataExtract.py "SLB008"` or compiled version: `LNADataExtract.exe "SLB008"`

returns:
```
Expand All @@ -41,4 +41,11 @@ returns:
41.05975121951219
```

in a text file named `SLB008.txt` in the same directory as it's excel file `Alphawave Services\EA Production - SARAO - SARAO\DocumentControl\Test data\317-022005\SLB008`.
in a text file named `SLB008.txt` in the same directory as it's excel file `Alphawave Services\EA Production - SARAO - SARAO\DocumentControl\Test data\317-022005\SLB008`.

# Compilation

run `python -m pip install pyinstaller` in cmd prompt or powershell etc.

Run the .bat file. This will create 2 folders, one called build, the other dist.
The release binary file is located in /dist - this is to be used from SPF SHIELD

0 comments on commit 3ec3a42

Please sign in to comment.