You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PRET worked fine. Note, the backslash must be escaped by prefacing it with a backslash.
I might suggest putting a comment to this effect in the helper.py file, and also in the main Readme file.
I suppose you could put some logic in the scripts to change SEP based on the printer model, but at least a comment would direct users how to fix this themselves if they have a printer that requires Backslashes in file paths.
Thanks. I'm enjoying getting to know PRET, although I have yet to be able to access the main LynxOS directories on the 4050's by using the \...\...\...\ technique.
The text was updated successfully, but these errors were encountered:
After testing PRET with two different LaserJet 4050N's and receiving errors on simple things like 'ls' commands, I put it in Debug mode and saw why.
PRET was issuing forward slashes '/' as path separators when sending commands to the printer. The LaserJet 4050's (and perhaps others) choke on this.
The fix is found in the helper.py file at line 510:
class const(): # define constants
SEP = '/' # use posixoid path separator
By changing it to:
SEP = '\' # use backslash path separator (LJ 4050N, others)
PRET worked fine. Note, the backslash must be escaped by prefacing it with a backslash.
I might suggest putting a comment to this effect in the helper.py file, and also in the main Readme file.
I suppose you could put some logic in the scripts to change SEP based on the printer model, but at least a comment would direct users how to fix this themselves if they have a printer that requires Backslashes in file paths.
Thanks. I'm enjoying getting to know PRET, although I have yet to be able to access the main LynxOS directories on the 4050's by using the \...\...\...\ technique.
The text was updated successfully, but these errors were encountered: