oxygine / oxygine-framework

Oxygine is C++ engine and framework for 2D games on iOS, Android, Windows, Linux and Mac
http://oxygine.org/
Other
788 stars 173 forks source link

What's wrong with -t all option for generating projects? #174

Open stalker57241 opened 1 year ago

stalker57241 commented 1 year ago
Traceback (most recent call last):
  File "D:\programs\oxygine\oxygine-framework\tools\gen_template.py", line 383, in <module>
    run(args)
  File "D:\programs\oxygine\oxygine-framework\tools\gen_template.py", line 67, in run
    _run(args)
  File "D:\programs\oxygine\oxygine-framework\tools\gen_template.py", line 362, in _run
    process_folder(top_path, args.dest + "/")
  File "D:\programs\oxygine\oxygine-framework\tools\gen_template.py", line 303, in process_folder
    for src in os.listdir(path):
               ^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: 'D:\\programs\\oxygine\\oxygine-framework\\tools/templates/proj.all//'

When I finally tried to create all templates for projects, this message appeared. Command: python gen_template.py LearnProject2 --type all -d E:\oxygine\learn_project2 (-t all I tried first, but it won't work)

stalker57241 commented 1 year ago

And what's wrong with generation of projects with python scripts principially?!!! When I created project, this put solution files right into directional folder, not subfolder

guanka commented 10 months ago

It seems that an error in process_folder(top_path, args.dest + "/"), the windows path separators different from unix system. you'd better try to change the "/" to "\"