mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3308 from timothyqiu/project-creator-config-path-fix
Project creator: use absolute path for json config files
This commit is contained in:
commit
9ec3ba53ac
|
@ -95,8 +95,9 @@ def processPlatformProjects(context, platform):
|
|||
proj_path = os.path.join(context["dst_project_path"], "proj." + platform)
|
||||
java_package_path = ""
|
||||
|
||||
# read json config file or the current platform
|
||||
f = open("%s.json" % platform)
|
||||
# read json config file for the current platform
|
||||
conf_path = os.path.join(context["script_dir"], "%s.json" % platform)
|
||||
f = open(conf_path)
|
||||
data = json.load(f)
|
||||
|
||||
# rename package path, like "org.cocos2dx.hello" to "com.company.game". This is a special process for android
|
||||
|
|
Loading…
Reference in New Issue