update
This commit is contained in:
@@ -20,47 +20,32 @@
|
||||
# * *
|
||||
# ***********************************************************************
|
||||
|
||||
import FreeCAD, Draft
|
||||
import PVPlantSite
|
||||
import copy
|
||||
import FreeCAD
|
||||
import Draft
|
||||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import openpyxl
|
||||
from openpyxl.styles import Alignment, Border, Side, Font
|
||||
|
||||
from PVPlantPlacement import getCols
|
||||
|
||||
if FreeCAD.GuiUp:
|
||||
from DraftTools import translate
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
|
||||
import Part
|
||||
import pivy
|
||||
from pivy import coin
|
||||
import os
|
||||
else:
|
||||
# \cond
|
||||
def translate(ctxt, txt):
|
||||
return txt
|
||||
|
||||
|
||||
def QT_TRANSLATE_NOOP(ctxt, txt):
|
||||
return txt
|
||||
# \endcond
|
||||
|
||||
__title__ = "PVPlant Trench"
|
||||
__author__ = "Javier Braña"
|
||||
__url__ = "http://www.sogos-solar.com"
|
||||
|
||||
from PVPlantResources import DirIcons as DirIcons
|
||||
from PVPlantResources import DirDocuments as DirDocuments
|
||||
|
||||
|
||||
'''import os
|
||||
import platform
|
||||
import subprocess
|
||||
|
||||
def open_file(path):
|
||||
"""Open a file or directory using the default system handler"""
|
||||
if platform.system() == "Windows":
|
||||
os.startfile(path)
|
||||
elif platform.system() == "Darwin":
|
||||
subprocess.Popen(["open", path])
|
||||
else:
|
||||
subprocess.Popen(["xdg-open", path])'''
|
||||
subprocess.Popen(["xdg-open", path])
|
||||
|
||||
|
||||
from PVPlantPlacement import getCols
|
||||
|
||||
Reference in New Issue
Block a user