Skip to content

Commit

Permalink
fix issue #936
Browse files Browse the repository at this point in the history
os.path.join(*file_path.split("/")) construction drops leading slash from string thus making absolute path relative. It leads into problems in case if data_dir differs from directory where is zeronet installed.
  • Loading branch information
sergei-bondarenko authored May 22, 2017
1 parent 7900578 commit a871b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Debug/DebugMedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def merge(merged_path):
return False # No coffeescript compiler, skip this file

# Replace / with os separators and escape it
file_path_escaped = helper.shellquote(os.path.join(*file_path.split("/")))
file_path_escaped = helper.shellquote(file_path.replace(os.path.sep, "/"))

if "%s" in config.coffeescript_compiler: # Replace %s with coffeescript file
command = config.coffeescript_compiler % file_path_escaped
Expand Down

0 comments on commit a871b5d

Please sign in to comment.