Skip to content

Commit 27109e5

Browse files
committed
Setup includes all folders in the test data directory and pagestate imports sasview properly.
1 parent 9146ed9 commit 27109e5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,14 @@ def append_file(file_list, dir_path):
314314
'test/*.txt',
315315
'test/1d_data/*',
316316
'test/2d_data/*',
317+
'test/convertible_files/*',
318+
'test/coordinate_data/*',
319+
'test/image_data/*',
320+
'test/media/*',
321+
'test/other_files/*',
317322
'test/save_states/*',
318-
'test/upcoming_formats/*',
319-
'default_categories.json']
323+
'test/sesans_data/*'
324+
]
320325
packages.append("sas.sasview")
321326

322327
required = [

src/sas/sasgui/perspectives/fitting/pagestate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def to_xml(self, file="fitting_state.fitv", doc=None,
818818
entry_node.appendChild(top_element)
819819

820820
attr = newdoc.createAttribute("version")
821-
import sasview
821+
from sas import sasview
822822
attr.nodeValue = sasview.__version__
823823
# attr.nodeValue = '1.0'
824824
top_element.setAttributeNode(attr)

0 commit comments

Comments
 (0)