Skip to content
Browse files

path fix

  • Loading branch information...
1 parent 482d2f7 commit 0fc4346b10107034c20ebd815a1677bd9e0f9705 @mikahanninen mikahanninen committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 rfgen.py
View
5 rfgen.py
@@ -414,15 +414,14 @@ def _create_resource_file(target_dir, subdir = "", id = 1):
res_info = {}
res_info['filename'] = "R%d_Resource.txt" % id
- full_path = target_dir + os.sep
+ full_path = os.path.join(target_dir, subdir)
res_info['import_path'] = res_info['filename']
if subdir != "":
- full_path += subdir + os.sep
res_info['import_path'] = os.path.join(subdir,res_info['filename'])
if not os.path.exists(full_path):
os.makedirs(full_path)
- res_info['filepath'] = "%s%s" % (full_path, res_info['filename'])
+ res_info['filepath'] = full_path
return res_info

0 comments on commit 0fc4346

Please sign in to comment.
Something went wrong with that request. Please try again.