Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
5d89b5e4
Commit
5d89b5e4
authored
Nov 02, 2016
by
eric pellegrini
Browse files
Added pkg resources handling
parent
9e6d4dda
Changes
2
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/Icons/__init__.py
View file @
5d89b5e4
...
...
@@ -21,7 +21,7 @@ class Icons(object):
icon
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
),
name
+
".png"
)
else
:
raise
image
=
wx
.
ImageFromBitmap
(
wx
.
Bitmap
(
icon
))
image
=
image
.
Scale
(
width
,
height
,
wx
.
IMAGE_QUALITY_HIGH
)
...
...
MDANSE/__init__.py
View file @
5d89b5e4
...
...
@@ -30,6 +30,7 @@ Created on Mar 26, 2015
:author: Eric C. Pellegrini
'''
import
os
import
warnings
warnings
.
filterwarnings
(
"ignore"
)
...
...
@@ -44,11 +45,6 @@ from MDANSE.Data.ElementsDatabase import ELEMENTS
import
MDANSE.Framework
import
os
# MMTK hack for MMTK in case when freezing MDANSE
os
.
environ
[
"MMTKDATABASE"
]
=
os
.
path
.
join
(
PLATFORM
.
package_directory
(),
'Data'
)
PLATFORM
.
create_directory
(
PLATFORM
.
macros_directory
())
# MMTK imports.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment