blais / snakefood

Python Dependency Graphs
GNU General Public License v2.0
75 stars 17 forks source link

Windows support - broken #4

Open blais opened 8 years ago

blais commented 8 years ago

Original report by terryranki (Bitbucket: terryranki, ).


Just grabbed the latest from bitbucket and installed

6d55510bd30b

There are multiple assumptions on the execution framework and OS support here.

By default, windows cant execute an extensionless file - so calling os.execvp is not a smart thing in its current installed state.

#!DOS

c:\Anaconda2\Scripts>python c:\Anaconda2\Scripts\snakefood deps C:\source\
\custom\attach_cable.py
Traceback (most recent call last):
  File "c:\Anaconda2\Scripts\snakefood", line 24, in <module>
    os.execvp(cmdname, [cmdname] + sys.argv[2:])
  File "C:\Anaconda2\lib\os.py", line 346, in execvp
    _execvpe(file, args)
  File "C:\Anaconda2\lib\os.py", line 382, in _execvpe
    func(fullname, *argrest)
OSError: [Errno 2] No such file or directory