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

Empaquetamiento #26

Open
jon85p opened this issue Sep 13, 2017 · 3 comments
Open

Empaquetamiento #26

jon85p opened this issue Sep 13, 2017 · 3 comments
Assignees
Milestone

Comments

@jon85p
Copy link
Owner

jon85p commented Sep 13, 2017

Empaquetamiento para usuarios Windows; instalación tipo .exe
Para Linux, tipo .deb y .rpm

@jon85p jon85p added this to the v0.1 milestone Sep 20, 2017
@xmagor
Copy link
Collaborator

xmagor commented Jan 3, 2021

@jon85p cuando se empaquete el archivo, la forma en que se llama el units.txt podría corromperse?

pyENL/solver.py

Lines 5 to 16 in f9b9a47

from os.path import realpath
pyENL_path = realpath(__file__)[0:-9]
import sys
sys.path.append(pyENL_path)
from numpy import *
from pyENL_fcns import *
ln = log
log = log10
import warnings
from pint import _DEFAULT_REGISTRY as pyENLu
from utils import variables , bloques, variables_string
pyENLu.load_definitions(pyENL_path + "units.txt")

Ando haciendo pruebas del empaquetemiento y al ejecutar el .exe en w10 me sale el error :
No such file or directory: 'C:\\Users\\Miguel\\AppData\\Local\\Temp\\_MEI44202\\sunits.txt'

Pero lo que mas me llama la atención es que busca un archivo "sunits.txt", esa "s" es la que desconcerta

@jon85p
Copy link
Owner Author

jon85p commented Jan 3, 2021

¿Anda probando con pyInstaller?

@xmagor
Copy link
Collaborator

xmagor commented Jan 3, 2021

Sii, y con el archivo .spec para agregar archivos como ese txt de las unidades

xmagor added a commit that referenced this issue Jan 4, 2021
- Change way to get path due to compatibility with packaging in W10
- Add .ico to use in package .exe
- Save config file in the user config path independent of the OS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants