Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An example script to bundle up .res to .png conversion using PyInstaller #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup; changed name for the script and updated accrodingly
  • Loading branch information
aretasg authored and aretasg committed Mar 3, 2019
commit 20a08315cc4e352fce9186b48c28f3c039fb03ea
File renamed without changes.
Binary file removed examplescripts/sample1.res
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@

## Features

* res_to_png.py is a modified pycorn-bin.py script to generate .png plots from .res files;
* The script was purposly designed having bundling with PyInstaller in mind for easy distribution and use for people not familiar with the command line interface;
* pycorn-res2png.py is a modified pycorn-bin.py script to generate .png plots from .res files;
* The script was purposly designed having bundling with PyInstaller in mind for an easy distribution and use for people not familiar with the command line interface;
* It does not require any arguments;
* When run, generates a png file for every .res file in the same directory as the res_to_png.py script.
* When run, generates a png file for every .res file in the same directory as the pycorn-res2png.py script.

## Example usage

```
python res_to_png.py
python pycorn-res2png.py
```
or
```
pyinstaller -F -w res_to_png.py
pyinstaller -F -w pycorn-res2png.py
```

## Known issues
## Known issues when using with PyInstaller

On macOS when creating an executable using PyInstaller an error related to tkinter may be issued. Please refer to this [link](https://github.com/pyinstaller/pyinstaller/issues/3753) for a solution.