Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simpler test cases; their connection to Languedoc
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@641 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
f732152
commit 384d64c
Showing
17 changed files
with
711 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/python | ||
import os | ||
import sys | ||
import string | ||
import elementtree.ElementTree as ET | ||
import slpsns | ||
import slicing | ||
import metrics | ||
|
||
def main(xbgfFile): | ||
xbgfDir = '/'.join(xbgfFile.split('/')[:-1]) | ||
if xbgfDir == '': | ||
xbgfDir = './' | ||
elif xbgfDir[-1]!='/': | ||
xbgfDir += '/' | ||
print 'Slicing...' | ||
sliced = slicing.sliceFile(xbgfDir,xbgfDir,xbgfFile.split('/')[-1].replace('.xbgf','')) | ||
return | ||
|
||
if __name__ == "__main__": | ||
if len(sys.argv) == 2: | ||
slpsns.init(ET) | ||
apply(main,sys.argv[1:6]) | ||
else: | ||
print '''This tool takes an XBGF file and slices it. | ||
Usage:''' | ||
print ' ',sys.argv[0],'<xbgf file>' | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.