Some derp protection in the workspace copy.
This commit is contained in:
parent
00bdb3dc0b
commit
5e0af1f2cb
|
@ -685,11 +685,11 @@ def setup_mcp(fml_dir, mcp_dir, dont_gen_conf=True):
|
||||||
gen_renamed_conf(mcp_dir, fml_dir)
|
gen_renamed_conf(mcp_dir, fml_dir)
|
||||||
|
|
||||||
#update workspace
|
#update workspace
|
||||||
if not os.path.isfile(os.path.join(fml_dir, 'fmlbuild.properties')):
|
if not os.path.isfile(os.path.join(fml_dir, 'fmlbuild.properties-sample')):
|
||||||
mcp_eclipse = os.path.join(mcp_dir, 'eclipse')
|
mcp_eclipse = os.path.join(mcp_dir, 'eclipse')
|
||||||
if not os.path.isdir(mcp_eclipse):
|
if not os.path.isdir(mcp_eclipse) and os.path.isdir(os.path.join(fml_dir, 'eclipse')):
|
||||||
print 'Fixing MCP Workspace'
|
print 'Fixing MCP Workspace'
|
||||||
shutil.copytree(os.path.join(fml_dir, 'eclipse'), mcp_eclipse)
|
copytree(os.path.join(fml_dir, 'eclipse'), mcp_eclipse)
|
||||||
|
|
||||||
def normaliselines(in_filename):
|
def normaliselines(in_filename):
|
||||||
in_filename = os.path.normpath(in_filename)
|
in_filename = os.path.normpath(in_filename)
|
||||||
|
|
Loading…
Reference in New Issue