Make sure to create 'data' folder if NLS is disabled

This commit is contained in:
Christian Dywan 2009-04-19 17:03:55 +02:00
parent 0ecb074ea7
commit 19c57b4da7

View file

@ -310,6 +310,7 @@ def build (bld):
bld.install_files (appdir, 'data/' + APPNAME + '.desktop')
else:
folder = os.path.dirname (bld.env['waf_config_files'][0]) + '/data'
Utils.check_dir (folder)
desktop = APPNAME + '.desktop'
pre = open ('data/' + desktop + '.in')
after = open (folder + '/' + desktop, 'w')