Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Network installation of telemac v7p0r1

Network installation of telemac v7p0r1 8 years 9 months ago #19739

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Sebastien,

The problem with the dictionary file not being able to be retrieved from a network location keeps emerging and I am running out of workarounds. All other files can be retrieved from the UNC path, except the dictionary.

Is this possible to be addressed in the runcode script?

Best Regards,
Costas
The administrator has disabled public write access.

Network installation of telemac v7p0r1 8 years 9 months ago #19743

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
My research shows that the problem arises from the following code:
if not ( path.isfile(cref) or path.isdir(cref) ):
within processLIT when it comes to checking the UNC path exists. It is probably a limitation of the path.isdir function. I disabled this check in my file just for the dictionary and it works. Can this be properly addressed?

Regards,
Costas
The administrator has disabled public write access.

Network installation of telemac v7p0r1 8 years 9 months ago #19744

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Thank you Costas, very helpful to have pin-pointed where the problem could come from.

I will try to adress and committ to the trunk.

Sébastien.
The administrator has disabled public write access.

Network installation of telemac v7p0r1 7 years 8 months ago #25467

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Sebastien,

I revisited this issue and found that the following trick solves my problem and UNC paths can be applied universally.
I added the following lines:
if k == 'DICTIONARY':
  cref = r'{}'.format(cref.replace('\\\\', '\\'))
before:
if not ( path.isfile(cref) or path.isdir(cref) ):
If you can think of a more appropriate solution that could be added to the trunk, I would be happy to hear.

Best Regards,
Costas
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.