Skip to content
Snippets Groups Projects
Commit d397de7f authored by Samuel Burbulla's avatar Samuel Burbulla Committed by Andreas Dedner
Browse files

Add __main__.py to define commands.

parent 5239bca7
Branches
Tags
1 merge request!960refactor the way python is used in dune
......@@ -274,15 +274,12 @@ def cmakeFlags():
return flags
def inVEnv():
<<<<<<< HEAD
# check whether we are in a anaconda environment
# were the checks based on prefix and base_prefix
# seem to fail
if "CONDA_DEFAULT_ENV" in os.environ:
return 1
=======
>>>>>>> Add a .noconfigure tagfile to prevent dune-py from reconfiguration.
# If sys.real_prefix exists, this is a virtualenv set up with the virtualenv package
real_prefix = hasattr(sys, 'real_prefix')
if real_prefix:
......@@ -308,11 +305,7 @@ def get_dune_py_dir():
# generate in home directory
try:
<<<<<<< HEAD
home = os.path.expanduser("~")
=======
home = expanduser("~")
>>>>>>> Add a .noconfigure tagfile to prevent dune-py from reconfiguration.
return os.path.join(home, '.cache', 'dune-py')
except KeyError:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment