Description:
There are a handful of things I'd like to improve in the current python 
build/bundle scripts.  Specifically:
                - Allow make_apk.py to be runnable from any directory, not just 
from the crosswalk directory
                - Improve the language and printed output from the scripts
                - Create the temporary directories in the system "temp" 
location so if the script is interrupted they don't clutter the crosswalk 
source directory

Affected component:
 - source changes:  Python scripts in  src/xwalk/app/
 - area of project affected:  Crosswalk command-line builds

Related features/bugs:  XWALK-2391 - 
2395<https://crosswalk-project.org/jira/browse/XWALK-2395?jql=id%20in%20%28XWALK-2391%2C%20XWALK-2392%2C%20XWALK-2393%2C%20XWALK-2394%2C%20XWALK-2395%29>

Implementation details:
To allow make_apk.py to be runnable from any directory, identify all the places 
where scripts are imported or files/directories are read/written and pre-pend 
the xwalk directory.  The main changes are in make_apk.py and customize.py with 
a couple one-line changes in the few other scripts.  (I think!)

For example:
(at head of script)
# get xwalk absolute path so we can run this script from any location
xwalk_dir = os.path.dirname(os.path.abspath(__file__))
(then to load additional .py)
sys.path.append(xwalk_dir)
 (or to access files/directories)
target_library_path = os.path.join(xwalk_dir, name, 'xwalk_core_library')

Bob

_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to