summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-26 13:11:00 -0400
committerOwl <isaclien9752@gmail.com>2025-08-26 13:11:00 -0400
commit2119dafbffb9a948ae90ebbcbf3c1448f2395f29 (patch)
tree94a84271afce534d0f99e9db40a474fe2915a2fe
parentef025447c95592b34cba1edb0a4835f93abaced7 (diff)
downloadblenxy-2119dafbffb9a948ae90ebbcbf3c1448f2395f29.tar.gz
blenxy-2119dafbffb9a948ae90ebbcbf3c1448f2395f29.zip
windows path issue
-rw-r--r--bck_export.py7
-rw-r--r--file_ops.py4
2 files changed, 4 insertions, 7 deletions
diff --git a/bck_export.py b/bck_export.py
index 969152e..16f6468 100644
--- a/bck_export.py
+++ b/bck_export.py
@@ -233,12 +233,7 @@ def export_bck_func(options, context):
bck_funcs.write_smg_bck_raw(raw, options.filepath, endian_ch)
# done!
- blender_funcs.disp_msg("BCK animation \"%s\" written" % (file_ops.get_file_name(options.filepath)))
-
- print("\nLMAO\n")
- print(options.filepath)
- print("\nLMAO\n")
-
+ blender_funcs.disp_msg("BCK animation \"%s\" written" % (file_ops.get_file_name(options.filepath)))
return {"FINISHED"}
# Stuff down is for the menu appending
diff --git a/file_ops.py b/file_ops.py
index b482b88..bbad813 100644
--- a/file_ops.py
+++ b/file_ops.py
@@ -55,7 +55,9 @@ def get_file_name(path):
# get the full path of the file/folder
if (f_exists(path)):
- path = os.path.abspath(path)
+ path = get_path_str(os.path.abspath(path))
+ # ^ have to pass it through get_path_str() again because
+ # windows os.path.abspath() returns the string with backward slashes
# start reading path string
string = ""