Commit de58bda6 authored by mirone's avatar mirone

aggiustamenti docs

parent ff225be4
......@@ -34,8 +34,13 @@ from __future__ import print_function
import string
import sys
# raise Exception(sys.argv[0][-12:]=="sphinx-build" )
from . import string_six
if(sys.argv[0][-12:]!="sphinx-build"):
from . import string_six
from . import EdfFile
from . import LTSparsePrep
from . import setCpuSet
import traceback
import sys
......@@ -43,7 +48,6 @@ import numpy
Numeric = numpy
import math
import copy
from . import EdfFile
import h5py
import time
from os.path import basename
......@@ -56,7 +60,6 @@ import h5py
import os
import errno
from . import LTSparsePrep
def make_sure_path_exists(path):
try:
......@@ -71,9 +74,11 @@ mypname = MPI.Get_processor_name()
comm = MPI.COMM_WORLD
from . import setCpuSet
mygpus, MemPerProc, coresperproc, cpusperproc = setCpuSet.setCpuSet()
ncpus = coresperproc
if(sys.argv[0][-12:]!="sphinx-build"):
mygpus, MemPerProc, coresperproc, cpusperproc = setCpuSet.setCpuSet()
ncpus = coresperproc
else:
mygpus, MemPerProc, coresperproc, cpusperproc = [], 20, 1,1
def genReduce(token, tipo = MPI.INT , ope = MPI.MIN ):
if tipo == MPI.INT:
......
......@@ -111,14 +111,20 @@
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import string
from . import string_six
import sys
if(sys.argv[0][-12:]!="sphinx-build"):
from . import string_six
from . import __init__
from .__init__ import version as myversion
......@@ -455,9 +461,6 @@ def get_setted_multipag_option(optname,files_to_cancel, tmpdir ):
return setted_res, val_res
from . import __init__
from .__init__ import version as myversion
def callpyhst(inputfile):
......
......@@ -17,7 +17,7 @@ import sys, os
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, "../PyHST/" )
sys.path.insert(0,"../PyHST/" )
# -- General configuration -----------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment