use sys.path.insert() instead of sys.path.append() to avoid conflicts with other python packages
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
|
||||
import sys,os
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from dump import dump
|
||||
from cfg import cfg
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
|
||||
import sys,os
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from dump import dump
|
||||
from pdbfile import pdbfile
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
import sys,os
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from dump import dump
|
||||
from xyz import xyz
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
import sys,os
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from dump import dump
|
||||
|
||||
if len(sys.argv) != 4:
|
||||
|
||||
@ -14,7 +14,7 @@ from __future__ import print_function
|
||||
|
||||
import sys,os,argparse
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from log import log
|
||||
|
||||
# set up arg parser
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
import sys,os,code
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from log import log
|
||||
from gnu import gnu
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
import sys,os
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from dump import dump
|
||||
|
||||
# parse args
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
import sys,os
|
||||
path = os.environ["LAMMPS_PYTHON_TOOLS"]
|
||||
sys.path.append(path)
|
||||
sys.path.insert(1,path)
|
||||
from dump import dump
|
||||
|
||||
# parse args
|
||||
|
||||
Reference in New Issue
Block a user