Local build in Windows is not working due to hard-coded /
Closed this issue · 2 comments
docNord commented
There is an issue in certain path splits and combines on my version of Windows; the problem seems to be that certain split and join statements have "/" hard coded in them. When I change that locally to "\", it works (to a degree). Of course, this is no good since I then can't use the code to build in a Unix-based server environment.
docNord commented
Successfully installed mysgen-0.4.3
(env) C:\SCRATCH\mysgen>cd ..
(env) C:\SCRATCH>cd greenhouse-majorna
(env) C:\SCRATCH\greenhouse-majorna>python -m mysgen.mysgen
Traceback (most recent call last):
File "C:\Program Files\Python\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\SCRATCH\mysgen\src\mysgen\mysgen.py", line 598, in <module>
build()
File "C:\SCRATCH\mysgen\src\mysgen\mysgen.py", line 595, in build
mysgen.build()
File "C:\SCRATCH\mysgen\src\mysgen\mysgen.py", line 381, in build
self.define_environment()
File "C:\SCRATCH\mysgen\src\mysgen\mysgen.py", line 402, in define_environment
templates_path = PosixPath(self.base["theme_path"], TEMPLATES)
File "C:\Program Files\Python\lib\pathlib.py", line 962, in __new__
raise NotImplementedError("cannot instantiate %r on your system"
NotImplementedError: cannot instantiate 'PosixPath' on your system