stonerlab / Stoner-PythonCode

Stoner Python module repository
GNU General Public License v3.0
19 stars 13 forks source link

Data.clone gets a bad stylesheet #11

Open gb119 opened 7 years ago

gb119 commented 7 years ago

Steps to reproduce: from Stoner import Data d=Data(np.ones((2,2)),setas="xy") d.plot() os,chdir("/tmp") e=d.clone

Reports that it can't find the stylesheet in the the template because the path stored in the template class is relative.

gb119 commented 7 years ago

Fixed in 507f1e0ce2396789e42716a3cda8a521a089365d with more liberal use of realpath()