Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL RS485 - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Conv TTL RS485 - Testing
Commits
095449d3
Commit
095449d3
authored
Dec 04, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to output to correct file name (was "ttlbl-*")
parent
79b68346
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
jpts.py
pts/python/jpts.py
+1
-1
ptsdefine.py
pts/python/ptsdefine.py
+2
-0
rename
pts/rename
+2
-1
No files found.
pts/python/jpts.py
View file @
095449d3
...
@@ -108,7 +108,7 @@ if __name__ == '__main__':
...
@@ -108,7 +108,7 @@ if __name__ == '__main__':
parser
.
add_option
(
"-l"
,
"--lun"
,
help
=
"Logical Unit Number"
,
type
=
"int"
,
default
=
ELMASLOT
,
dest
=
"lun"
)
parser
.
add_option
(
"-l"
,
"--lun"
,
help
=
"Logical Unit Number"
,
type
=
"int"
,
default
=
ELMASLOT
,
dest
=
"lun"
)
parser
.
add_option
(
"-s"
,
"--snum"
,
help
=
"Serial number(s)"
,
dest
=
"snum"
,
action
=
"store"
,
nargs
=
2
,
default
=
(
"0"
,
"0"
))
parser
.
add_option
(
"-s"
,
"--snum"
,
help
=
"Serial number(s)"
,
dest
=
"snum"
,
action
=
"store"
,
nargs
=
2
,
default
=
(
"0"
,
"0"
))
parser
.
add_option
(
"-n"
,
"--name"
,
help
=
"Board name"
,
dest
=
"board_name"
,
default
=
"ttlbl"
)
parser
.
add_option
(
"-n"
,
"--name"
,
help
=
"Board name"
,
dest
=
"board_name"
,
default
=
BOARD
)
parser
.
add_option
(
"-b"
,
"--bus"
,
help
=
"Bus VME/PCI/SKT"
,
dest
=
"bus_type"
,
default
=
"SKT"
)
parser
.
add_option
(
"-b"
,
"--bus"
,
help
=
"Bus VME/PCI/SKT"
,
dest
=
"bus_type"
,
default
=
"SKT"
)
parser
.
add_option
(
"-o"
,
"--outdir"
,
help
=
"Path to log directory"
,
dest
=
"dir_name"
,
default
=
"."
)
parser
.
add_option
(
"-o"
,
"--outdir"
,
help
=
"Path to log directory"
,
dest
=
"dir_name"
,
default
=
"."
)
parser
.
add_option
(
"-d"
,
"--debug"
,
help
=
"Debug Option"
,
dest
=
"debug"
,
default
=
False
,
action
=
"store_true"
)
parser
.
add_option
(
"-d"
,
"--debug"
,
help
=
"Debug Option"
,
dest
=
"debug"
,
default
=
False
,
action
=
"store_true"
)
...
...
pts/python/ptsdefine.py
View file @
095449d3
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
# TODO: -
# TODO: -
#===============================================================================
#===============================================================================
BOARD
=
"$BOARD"
# ELMA crate definitions
# ELMA crate definitions
ELMAIP
=
"$ELMAIP"
ELMAIP
=
"$ELMAIP"
ELMAPWD
=
"$ELMAPWD"
ELMAPWD
=
"$ELMAPWD"
...
...
pts/rename
View file @
095449d3
...
@@ -10,7 +10,7 @@ try:
...
@@ -10,7 +10,7 @@ try:
with
open
(
"ubuntu/
%
s/pyts/ptsdefine.py"
%
(
sys
.
argv
[
1
]),
"r+"
)
as
f
:
with
open
(
"ubuntu/
%
s/pyts/ptsdefine.py"
%
(
sys
.
argv
[
1
]),
"r+"
)
as
f
:
buf
=
f
.
read
()
buf
=
f
.
read
()
buf
=
Template
(
buf
)
buf
=
Template
(
buf
)
buf
=
buf
.
substitute
(
ELMAIP
=
sys
.
argv
[
2
],
ELMAPWD
=
sys
.
argv
[
3
],
ELMASLOT
=
sys
.
argv
[
4
])
buf
=
buf
.
substitute
(
BOARD
=
sys
.
argv
[
1
],
ELMAIP
=
sys
.
argv
[
2
],
ELMAPWD
=
sys
.
argv
[
3
],
ELMASLOT
=
sys
.
argv
[
4
])
f
.
seek
(
0
)
f
.
seek
(
0
)
f
.
write
(
buf
)
f
.
write
(
buf
)
...
@@ -34,6 +34,7 @@ try:
...
@@ -34,6 +34,7 @@ try:
buf
=
buf
.
substitute
(
ELMAIP
=
sys
.
argv
[
2
],
ELMAPWD
=
sys
.
argv
[
3
])
buf
=
buf
.
substitute
(
ELMAIP
=
sys
.
argv
[
2
],
ELMAPWD
=
sys
.
argv
[
3
])
f
.
seek
(
0
)
f
.
seek
(
0
)
f
.
write
(
buf
)
f
.
write
(
buf
)
except
IndexError
:
except
IndexError
:
print
(
"ERROR: Are you sure you give all the makefile variables as input?"
)
print
(
"ERROR: Are you sure you give all the makefile variables as input?"
)
raise
raise
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment