openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00082
[Branch ~openshot.code/openshot/openshot-docs-translations] Rev 213: More changes to make this work with LaunchPad's recipe system.
------------------------------------------------------------
revno: 213
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot-docs-translations
timestamp: Tue 2011-09-13 13:53:13 -0500
message:
More changes to make this work with LaunchPad's recipe system.
modified:
compile.py
--
lp:~openshot.code/openshot/openshot-docs-translations
https://code.launchpad.net/~openshot.code/openshot/openshot-docs-translations
Your team OpenShot Code is subscribed to branch lp:~openshot.code/openshot/openshot-docs-translations.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/openshot-docs-translations/+edit-subscription
=== modified file 'compile.py'
--- compile.py 2011-09-13 17:25:00 +0000
+++ compile.py 2011-09-13 18:53:13 +0000
@@ -83,9 +83,15 @@
HTML = False
path = os.path.dirname(os.path.abspath(__file__))
parent_folder = os.path.dirname(path)
+parent_parent_folder = os.path.dirname(parent_folder)
locale_folder = os.path.join(path, "en-us", "openshot")
-
english_xml_path = os.path.join(parent_folder, "openshot-docs", "en-us", "openshot", "openshot.xml")
+
+# look for parent folder (for LaunchPad recipe) - overide the path to the XML file
+if os.path.exists(os.path.join(parent_parent_folder, "openshot.xml")):
+ print "Override the openshot.xml path to: %s" % os.path.join(parent_parent_folder, "openshot.xml")
+ english_xml_path = os.path.join(parent_parent_folder, "openshot.xml")
+
figures_path = os.path.join(parent_folder, "openshot-docs", "en-us", "figures")
sample_omf_path = os.path.join(path, "example.omf")