1
0
Fork 0
flightgear/scripts
Florent Rougon c72de824d2 terrasync.py: more modular code layout
- New directory scripts/python/TerraSync/terrasync.

- Move scripts/python/terrasync.py to
  scripts/python/TerraSync/terrasync/main.py (main module in the new
  structure).

- Add empty __init__.py file to scripts/python/TerraSync/terrasync/ to
  make this directory a Python package.

- Wrap the main code from previous terrasync.py in a main() function of
  the terrasync.main module. Also move command-line arguments parsing to
  a separate parseCommandLine() function.

- Add an executable script scripts/python/TerraSync/terrasync.py for end
  users, that just calls terrasync.main.main().

For end users, the only difference is that they now have to use
scripts/python/TerraSync/terrasync.py instead of
scripts/python/terrasync.py (which doesn't exist anymore, since all this
lives under the scripts/python/TerraSync directory from now on).

This structure will allow to cleanly split the code into modules and to
add unit tests.
2018-02-07 11:38:41 +01:00
..
atis Update ATIS voice generation scripts 2012-10-13 15:45:15 +02:00
completion Mark enhanced lighting options and --adf as deprecated 2017-06-04 16:56:17 +02:00
debug Goodbye automake. 2011-11-01 11:15:53 +00:00
example Goodbye automake. 2011-11-01 11:15:53 +00:00
java/FGClient #718: java client example not compiling 2012-03-27 21:06:29 +02:00
perl Goodbye automake. 2011-11-01 11:15:53 +00:00
python terrasync.py: more modular code layout 2018-02-07 11:38:41 +01:00
syntax gedit syntaxhighlight/snippet support for Nasal. 2013-11-07 14:30:03 +01:00
tools Fix syntax for IF DEFINED conditionals 2010-11-14 23:32:37 +00:00
CMakeLists.txt Add CMake Linux install directives for the icons and the .desktop file 2017-05-24 22:47:01 +02:00