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

Apps/improve py init #3642

Merged
merged 14 commits into from
Dec 13, 2018
Merged

Apps/improve py init #3642

merged 14 commits into from
Dec 13, 2018

Conversation

philbucher
Copy link
Member

@philbucher philbucher commented Dec 12, 2018

This PR updates how the new python-init scripts are being used.

Initially I had put them into the python_scripts folder of the apps and named the __init__.py, but this introduces the problem that then this folder can be imported as a python-modules, which should not be the case.

Therefore I moved them back where they were initially and used the original name
=> CMake does the renaming now when installing the file to KratosMultiphysics
=> this way we can avoid all problems with the potentially dangerous __init__.py

NOTE: this PR does not change the behavior, the apps still work as python-modules (introduced in #3217 )

sorry for the inconvenience

Wiki is updated

@philbucher
Copy link
Member Author

seems like I messed up sth, fixing it now

@philbucher
Copy link
Member Author

now it works, I had forgotten to rename some files

Copy link
Member

@adityaghantasala adityaghantasala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look fine according to what was discussed ..!
@jcotela do you also agree with these changes ?

@jcotela
Copy link
Member

jcotela commented Dec 13, 2018

@adityaghantasala I discussed it briefly in person with @philbucher yesterday, but I think it makes a lot of sense.

@philbucher
Copy link
Member Author

sorry for messing this up in the first place :/

@philbucher
Copy link
Member Author

thx

@philbucher philbucher merged commit 6154afe into master Dec 13, 2018
@philbucher philbucher deleted the apps/improve-py-init branch December 13, 2018 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants