From c548c2693f003eccbddb96c87f5029a6f35ad8a4 Mon Sep 17 00:00:00 2001 From: Austin Blackstone Date: Wed, 21 Jan 2015 11:13:33 -0600 Subject: [PATCH] fixed readme.html so it works on all OS's, previous commit only worked on windows --- workspace_tools/export/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace_tools/export/__init__.py b/workspace_tools/export/__init__.py index 72b866a781..ee26e2425d 100755 --- a/workspace_tools/export/__init__.py +++ b/workspace_tools/export/__init__.py @@ -85,7 +85,7 @@ def export(project_path, project_name, ide, target, destination='/tmp/', zip_path = None if report['success']: # add readme file to every offline export. - open(tempdir+"\\README.html",'w').write(''% (target,ide)) + open(os.path.join(temdir, 'README.html'),'w').write(''% (target,ide)) zip_path = zip_working_directory_and_clean_up(tempdir, destination, project_name, clean) return zip_path, report