-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Algunos cambios para poder cx_freezar la aplicación para distribución.
- Loading branch information
1 parent
4e4781c
commit b32eed2
Showing
7 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ __pycache__ | |
/data/savedata.json | ||
/posición de las estrellas.txt | ||
/test.py | ||
/build/ | ||
/setup.py | ||
/data/favicon.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
from pint import UnitRegistry | ||
from os import getcwd, path | ||
from .backend import * | ||
|
||
if path.exists(path.join(getcwd(), "lib")): | ||
ruta = path.join(getcwd(), 'lib', 'engine') | ||
else: | ||
ruta = path.join(getcwd(), 'engine') | ||
|
||
ureg = UnitRegistry() | ||
ureg.load_definitions('engine/unit_definitions.txt') | ||
ureg.load_definitions(path.join(ruta, 'unit_definitions.txt')) | ||
q = ureg.Quantity | ||
|
||
material_densities = abrir_json('engine/material_densities.json') | ||
molecular_weight = abrir_json('engine/molecular_weight.json') | ||
recomendation = abrir_json('engine/recomendation.json') | ||
material_densities = abrir_json(path.join(ruta, 'material_densities.json')) | ||
molecular_weight = abrir_json(path.join(ruta, 'molecular_weight.json')) | ||
recomendation = abrir_json(path.join(ruta, 'recomendation.json')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters