Changeset 97f6de in git


Ignore:
Timestamp:
Feb 9, 2017, 11:40:13 AM (6 years ago)
Author:
Yue <ren@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
b7a600dbf47e619fa9c9d7f852021b2894df4489
Parents:
7d44dd5555e888e65ba7e20c25fc77d0d98f0db1
Message:
fix: plot in InteractiveShell
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/surf.lib

    r7d44dd r97f6de  
    141141
    142142  string surf_call; i = 0;
     143  if (isInteractiveShell())
     144  {
     145    surf_call = "surf-alggeo ";
     146    surf_call = surf_call + l + " >/dev/null 2>&1";
     147    "plotting with surf, image will appear in pop-up.";
     148
     149    i = system("sh", surf_call);
     150    ">>SPECIAL_EVENT_START>>/tmp/surf.jpg<<SPECIAL_EVENT_END<<";
     151    return();
     152  }
    143153  if (isWindows())
    144154  {
     
    432442}
    433443
     444static proc isInteractiveShell()
     445"returns 1 if this SINGULAR instance runs in some container inside interactive shell;
     4460 otherwise"
     447{
     448  string s = getShellOutput("whoami");
     449  return (s=="singularUser");
     450}
     451
    434452static proc getShellOutput(string shellCommand)
    435453"returns the console output when executing the given shellCommand"
Note: See TracChangeset for help on using the changeset viewer.