find template figure in its new place from script

This commit is contained in:
Panagiotis Cheilaris
2013-06-04 09:58:34 +02:00
parent 7a1201e1dc
commit 4217cc2459
@@ -185,8 +185,8 @@ if re.match("^[A-Za-z_][A-Za-z0-9_]*$", packagename):
# try to find figure pkg-small.png and copy it to figure path
scriptdir = os.path.dirname(sys.argv[0])
cgaldir = os.path.dirname(os.path.dirname(scriptdir))
figfile = os.path.join(cgaldir, 'Documentation', 'doc', 'fig',
'pkg-small.png')
figfile = os.path.join(cgaldir, 'Documentation', 'doc',
'Documentation', 'fig', 'pkg-small.png')
if os.path.exists(figfile):
shutil.copy(figfile, figpath)