Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape backslashes in windows paths #336

Merged
merged 1 commit into from
Oct 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions six/modules/wscript
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import sys
import os

Expand All @@ -11,10 +12,12 @@ def configure(conf):
# have to set NITF_PLUGIN_PATH
conf.env['enable_static_tres'] = True

conf.define('DEFAULT_SCHEMA_PATH',
os.path.join(os.path.abspath(conf.options.prefix),
'conf', 'schema', 'six'))
schemaPath = os.path.join(os.path.abspath(conf.options.prefix),
'conf', 'schema', 'six')
if platform.system() == 'Windows':
schemaPath = schemaPath.replace('\\', '\\\\')

conf.define('DEFAULT_SCHEMA_PATH', schemaPath)
conf.recurse()

def build(bld):
Expand Down