Description: Set path potentials to /usr/share/lammps/potentials
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2018-08-22

Index: lammps-0~20181211.gitad1b1897d/src/PYTHON/pair_python.cpp
===================================================================
--- lammps-0~20181211.gitad1b1897d.orig/src/PYTHON/pair_python.cpp
+++ lammps-0~20181211.gitad1b1897d/src/PYTHON/pair_python.cpp
@@ -53,7 +53,7 @@ PairPython::PairPython(LAMMPS *lmp) : Pa
   PyList_Append(py_path, PY_STRING_FROM_STRING("."));
 
   // if LAMMPS_POTENTIALS environment variable is set, add it to PYTHONPATH as well
-  const char * potentials_path = getenv("LAMMPS_POTENTIALS");
+  const char * potentials_path = "/usr/share/lammps/potentials";
   if (potentials_path != NULL) {
     PyList_Append(py_path, PY_STRING_FROM_STRING(potentials_path));
   }
Index: lammps-0~20181211.gitad1b1897d/src/force.cpp
===================================================================
--- lammps-0~20181211.gitad1b1897d.orig/src/force.cpp
+++ lammps-0~20181211.gitad1b1897d/src/force.cpp
@@ -1051,7 +1051,7 @@ FILE *Force::open_potential(const char *
 
   // try the environment variable directory
 
-  const char *path = getenv("LAMMPS_POTENTIALS");
+  const char *path = "/usr/share/lammps/potentials";
   if (path == NULL) return NULL;
 
   const char *pot = potential_name(name);
